summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-16 09:40:04 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-16 09:40:04 +0100
commit433371ee2d18897b21d4e4adf3ea73718085df89 (patch)
tree070f786384fca08508670acbbed8091fa74255e3
php-pecl-trader: 0.4.0 (stable) - New package
-rw-r--r--Makefile4
-rw-r--r--REFLECTION1410
-rw-r--r--php-pecl-trader.spec225
3 files changed, 1639 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/REFLECTION b/REFLECTION
new file mode 100644
index 0000000..03aa9dd
--- /dev/null
+++ b/REFLECTION
@@ -0,0 +1,1410 @@
+Extension [ <persistent> extension #150 trader version 0.4.0 ] {
+
+ - INI {
+ Entry [ trader.real_precision <ALL> ]
+ Current = '3'
+ }
+ Entry [ trader.real_round_mode <ALL> ]
+ Current = 'HALF_DOWN'
+ }
+ }
+
+ - Constants [59] {
+ Constant [ integer TRADER_MA_TYPE_SMA ] { 0 }
+ Constant [ integer TRADER_MA_TYPE_EMA ] { 1 }
+ Constant [ integer TRADER_MA_TYPE_WMA ] { 2 }
+ Constant [ integer TRADER_MA_TYPE_DEMA ] { 3 }
+ Constant [ integer TRADER_MA_TYPE_TEMA ] { 4 }
+ Constant [ integer TRADER_MA_TYPE_TRIMA ] { 5 }
+ Constant [ integer TRADER_MA_TYPE_KAMA ] { 6 }
+ Constant [ integer TRADER_MA_TYPE_MAMA ] { 7 }
+ Constant [ integer TRADER_MA_TYPE_T3 ] { 8 }
+ Constant [ double TRADER_REAL_MIN ] { -3.0E+37 }
+ Constant [ double TRADER_REAL_MAX ] { 3.0E+37 }
+ Constant [ double TRADER_INTEGER_MIN ] { -2147483647 }
+ Constant [ double TRADER_INTEGER_MAX ] { 2147483647 }
+ Constant [ integer TRADER_FUNC_UNST_ADX ] { 0 }
+ Constant [ integer TRADER_FUNC_UNST_ADXR ] { 1 }
+ Constant [ integer TRADER_FUNC_UNST_ATR ] { 2 }
+ Constant [ integer TRADER_FUNC_UNST_CMO ] { 3 }
+ Constant [ integer TRADER_FUNC_UNST_DX ] { 4 }
+ Constant [ integer TRADER_FUNC_UNST_EMA ] { 5 }
+ Constant [ integer TRADER_FUNC_UNST_HT_DCPERIOD ] { 6 }
+ Constant [ integer TRADER_FUNC_UNST_HT_DCPHASE ] { 7 }
+ Constant [ integer TRADER_FUNC_UNST_HT_PHASOR ] { 8 }
+ Constant [ integer TRADER_FUNC_UNST_HT_SINE ] { 9 }
+ Constant [ integer TRADER_FUNC_UNST_HT_TRENDLINE ] { 10 }
+ Constant [ integer TRADER_FUNC_UNST_HT_TRENDMODE ] { 11 }
+ Constant [ integer TRADER_FUNC_UNST_KAMA ] { 12 }
+ Constant [ integer TRADER_FUNC_UNST_MAMA ] { 13 }
+ Constant [ integer TRADER_FUNC_UNST_MFI ] { 14 }
+ Constant [ integer TRADER_FUNC_UNST_MINUS_DI ] { 15 }
+ Constant [ integer TRADER_FUNC_UNST_MINUS_DM ] { 16 }
+ Constant [ integer TRADER_FUNC_UNST_NATR ] { 17 }
+ Constant [ integer TRADER_FUNC_UNST_PLUS_DI ] { 18 }
+ Constant [ integer TRADER_FUNC_UNST_PLUS_DM ] { 19 }
+ Constant [ integer TRADER_FUNC_UNST_RSI ] { 20 }
+ Constant [ integer TRADER_FUNC_UNST_STOCHRSI ] { 21 }
+ Constant [ integer TRADER_FUNC_UNST_T3 ] { 22 }
+ Constant [ integer TRADER_FUNC_UNST_ALL ] { 23 }
+ Constant [ integer TRADER_FUNC_UNST_NONE ] { -1 }
+ Constant [ integer TRADER_COMPATIBILITY_DEFAULT ] { 0 }
+ Constant [ integer TRADER_COMPATIBILITY_METASTOCK ] { 1 }
+ Constant [ integer TRADER_ERR_SUCCESS ] { 0 }
+ Constant [ integer TRADER_ERR_LIB_NOT_INITIALIZE ] { 1 }
+ Constant [ integer TRADER_ERR_BAD_PARAM ] { 2 }
+ Constant [ integer TRADER_ERR_ALLOC_ERR ] { 3 }
+ Constant [ integer TRADER_ERR_GROUP_NOT_FOUND ] { 4 }
+ Constant [ integer TRADER_ERR_FUNC_NOT_FOUND ] { 5 }
+ Constant [ integer TRADER_ERR_INVALID_HANDLE ] { 6 }
+ Constant [ integer TRADER_ERR_INVALID_PARAM_HOLDER ] { 7 }
+ Constant [ integer TRADER_ERR_INVALID_PARAM_HOLDER_TYPE ] { 8 }
+ Constant [ integer TRADER_ERR_INVALID_PARAM_FUNCTION ] { 9 }
+ Constant [ integer TRADER_ERR_INPUT_NOT_ALL_INITIALIZE ] { 10 }
+ Constant [ integer TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE ] { 11 }
+ Constant [ integer TRADER_ERR_OUT_OF_RANGE_START_INDEX ] { 12 }
+ Constant [ integer TRADER_ERR_OUT_OF_RANGE_END_INDEX ] { 13 }
+ Constant [ integer TRADER_ERR_INVALID_LIST_TYPE ] { 14 }
+ Constant [ integer TRADER_ERR_BAD_OBJECT ] { 15 }
+ Constant [ integer TRADER_ERR_NOT_SUPPORTED ] { 16 }
+ Constant [ integer TRADER_ERR_INTERNAL_ERROR ] { 5000 }
+ Constant [ integer TRADER_ERR_UNKNOWN_ERROR ] { 65535 }
+ }
+
+ - Functions {
+ Function [ <internal:trader> function trader_acos ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ad ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <required> array $volume ]
+ }
+ }
+ Function [ <internal:trader> function trader_add ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ }
+ }
+ Function [ <internal:trader> function trader_adosc ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <required> array $volume ]
+ Parameter #4 [ <optional> $fastPeriod ]
+ Parameter #5 [ <optional> $slowPeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_adx ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_adxr ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_apo ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $fastPeriod ]
+ Parameter #2 [ <optional> $slowPeriod ]
+ Parameter #3 [ <optional> $mAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_aroon ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_aroonosc ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_asin ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_atan ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_atr ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_avgprice ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_bbands ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $nbDevUp ]
+ Parameter #3 [ <optional> $nbDevDn ]
+ Parameter #4 [ <optional> $mAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_beta ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_bop ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cci ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl2crows ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3blackcrows ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3inside ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3linestrike ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3outside ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3starsinsouth ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdl3whitesoldiers ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlabandonedbaby ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdladvanceblock ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlbelthold ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlbreakaway ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlclosingmarubozu ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlconcealbabyswall ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlcounterattack ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdldarkcloudcover ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdldoji ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdldojistar ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdldragonflydoji ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlengulfing ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdleveningdojistar ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdleveningstar ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlgapsidesidewhite ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlgravestonedoji ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhammer ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhangingman ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlharami ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlharamicross ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhighwave ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhikkake ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhikkakemod ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlhomingpigeon ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlidentical3crows ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlinneck ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlinvertedhammer ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlkicking ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlkickingbylength ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlladderbottom ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdllongleggeddoji ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdllongline ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlmarubozu ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlmatchinglow ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlmathold ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlmorningdojistar ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlmorningstar ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ Parameter #4 [ <optional> $penetration ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlonneck ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlpiercing ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlrickshawman ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlrisefall3methods ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlseparatinglines ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlshootingstar ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlshortline ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlspinningtop ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlstalledpattern ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlsticksandwich ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdltakuri ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdltasukigap ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlthrusting ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdltristar ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlunique3river ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlupsidegap2crows ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_cdlxsidegap3methods ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $open ]
+ Parameter #1 [ <required> array $high ]
+ Parameter #2 [ <required> array $low ]
+ Parameter #3 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_ceil ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_cmo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_correl ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_cos ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_cosh ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_dema ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_div ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ }
+ }
+ Function [ <internal:trader> function trader_dx ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_ema ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_exp ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_floor ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_dcperiod ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_dcphase ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_phasor ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_sine ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_trendline ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ht_trendmode ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_kama ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_linearreg ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_linearreg_angle ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_linearreg_intercept ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_linearreg_slope ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_ln ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_log10 ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_ma ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $mAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_macd ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $fastPeriod ]
+ Parameter #2 [ <optional> $slowPeriod ]
+ Parameter #3 [ <optional> $signalPeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_macdext ] {
+
+ - Parameters [7] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $fastPeriod ]
+ Parameter #2 [ <optional> $fastMAType ]
+ Parameter #3 [ <optional> $slowPeriod ]
+ Parameter #4 [ <optional> $slowMAType ]
+ Parameter #5 [ <optional> $signalPeriod ]
+ Parameter #6 [ <optional> $signalMAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_macdfix ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $signalPeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_mama ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $fastLimit ]
+ Parameter #2 [ <optional> $slowLimit ]
+ }
+ }
+ Function [ <internal:trader> function trader_mavp ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <required> array $periods ]
+ Parameter #2 [ <optional> $minPeriod ]
+ Parameter #3 [ <optional> $maxPeriod ]
+ Parameter #4 [ <optional> $mAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_max ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_maxindex ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_medprice ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ }
+ }
+ Function [ <internal:trader> function trader_mfi ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <required> array $volume ]
+ Parameter #4 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_midpoint ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_midprice ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_min ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_minindex ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_minmax ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_minmaxindex ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_minus_di ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_minus_dm ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_mom ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_mult ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ }
+ }
+ Function [ <internal:trader> function trader_natr ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_obv ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <required> array $volume ]
+ }
+ }
+ Function [ <internal:trader> function trader_plus_di ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_plus_dm ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_ppo ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $fastPeriod ]
+ Parameter #2 [ <optional> $slowPeriod ]
+ Parameter #3 [ <optional> $mAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_roc ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_rocp ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_rocr ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_rocr100 ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_rsi ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_sar ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $acceleration ]
+ Parameter #3 [ <optional> $maximum ]
+ }
+ }
+ Function [ <internal:trader> function trader_sarext ] {
+
+ - Parameters [10] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <optional> $startValue ]
+ Parameter #3 [ <optional> $offsetOnReverse ]
+ Parameter #4 [ <optional> $accelerationInitLong ]
+ Parameter #5 [ <optional> $accelerationLong ]
+ Parameter #6 [ <optional> $accelerationMaxLong ]
+ Parameter #7 [ <optional> $accelerationInitShort ]
+ Parameter #8 [ <optional> $accelerationShort ]
+ Parameter #9 [ <optional> $accelerationMaxShort ]
+ }
+ }
+ Function [ <internal:trader> function trader_sin ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_sinh ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_sma ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_sqrt ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_stddev ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $nbDev ]
+ }
+ }
+ Function [ <internal:trader> function trader_stoch ] {
+
+ - Parameters [8] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $fastK_Period ]
+ Parameter #4 [ <optional> $slowK_Period ]
+ Parameter #5 [ <optional> $slowK_MAType ]
+ Parameter #6 [ <optional> $slowD_Period ]
+ Parameter #7 [ <optional> $slowD_MAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_stochf ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $fastK_Period ]
+ Parameter #4 [ <optional> $fastD_Period ]
+ Parameter #5 [ <optional> $fastD_MAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_stochrsi ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $fastK_Period ]
+ Parameter #3 [ <optional> $fastD_Period ]
+ Parameter #4 [ <optional> $fastD_MAType ]
+ }
+ }
+ Function [ <internal:trader> function trader_sub ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real0 ]
+ Parameter #1 [ <required> array $real1 ]
+ }
+ }
+ Function [ <internal:trader> function trader_sum ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_t3 ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $vFactor ]
+ }
+ }
+ Function [ <internal:trader> function trader_tan ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_tanh ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $real ]
+ }
+ }
+ Function [ <internal:trader> function trader_tema ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_trange ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_trima ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_trix ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_tsf ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_typprice ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_ultosc ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod1 ]
+ Parameter #4 [ <optional> $timePeriod2 ]
+ Parameter #5 [ <optional> $timePeriod3 ]
+ }
+ }
+ Function [ <internal:trader> function trader_var ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ Parameter #2 [ <optional> $nbDev ]
+ }
+ }
+ Function [ <internal:trader> function trader_wclprice ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ }
+ }
+ Function [ <internal:trader> function trader_willr ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> array $high ]
+ Parameter #1 [ <required> array $low ]
+ Parameter #2 [ <required> array $close ]
+ Parameter #3 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_wma ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $real ]
+ Parameter #1 [ <optional> $timePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_set_unstable_period ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $functionId ]
+ Parameter #1 [ <required> $unstablePeriod ]
+ }
+ }
+ Function [ <internal:trader> function trader_get_unstable_period ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $functionId ]
+ }
+ }
+ Function [ <internal:trader> function trader_set_compat ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $compat ]
+ }
+ }
+ Function [ <internal:trader> function trader_get_compat ] {
+
+ - Parameters [0] {
+ }
+ }
+ Function [ <internal:trader> function trader_errno ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+}
+
diff --git a/php-pecl-trader.spec b/php-pecl-trader.spec
new file mode 100644
index 0000000..31b52cf
--- /dev/null
+++ b/php-pecl-trader.spec
@@ -0,0 +1,225 @@
+# spec file for php-pecl-gender
+#
+# Copyright (c) 2015 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+%{?scl: %scl_package php-pecl-trader}
+%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
+%{!?__pecl: %global __pecl %{_bindir}/pecl}
+%{!?__php: %global __php %{_bindir}/php}
+
+#### TODO : bundle ta-lib
+
+%global with_zts 0%{?__ztsphp:1}
+%global pecl_name trader
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+%if "%{php_version}" < "5.6"
+%global ini_name %{pecl_name}.ini
+%else
+%global ini_name 40-%{pecl_name}.ini
+%endif
+
+Summary: Technical Analysis for traders
+Name: %{?scl_prefix}php-pecl-%{pecl_name}
+Version: 0.4.0
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+# PHP ext is BSD-2, ta-lib is BSD-3
+License: BSD
+Group: Development/Languages
+URL: http://pecl.php.net/package/%{pecl_name}
+Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{?scl_prefix}php-devel > 5.3
+BuildRequires: %{?scl_prefix}php-pear
+
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
+%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
+
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
+# Other third party repo stuff
+Obsoletes: php53-pecl-%{pecl_name} <= %{version}
+Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php54-pecl-%{pecl_name} <= %{version}
+Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
+%if "%{php_version}" > "5.5"
+Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "5.6"
+Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
+%endif
+%endif
+
+%if 0%{?fedora} < 20 && 0%{?rhel} < 7
+# Filter shared private
+%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
+%{?filter_setup}
+%endif
+
+
+%description
+The trader extension is a free open source stock library based on TA-Lib.
+
+It's dedicated to trading software developers requiring to perform technical
+analysis of financial market data. Alongside many indicators like ADX, MACD,
+RSI, Stochastic, TRIX the candlestick pattern recognition and several vector
+arithmetic and algebraic functions are present.
+
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}.
+
+
+%prep
+%setup -q -c
+mv %{pecl_name}-%{version} NTS
+
+# Don't install tests
+sed -e 's/role="test"/role="src"/' \
+ -i package.xml
+
+cd NTS
+# Sanity check, really often broken
+extver=$(sed -n '/#define PHP_TRADER_VERSION/{s/.* "//;s/".*$//;p}' php_trader.h)
+if test "x${extver}" != "x%{version}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{version}.
+ exit 1
+fi
+cd ..
+
+%if %{with_zts}
+# Duplicate source tree for NTS / ZTS build
+cp -pr NTS ZTS
+%endif
+
+# Create configuration file
+cat > %{ini_name} << 'EOF'
+; Enable %{pecl_name} extension module
+extension=%{pecl_name}.so
+EOF
+
+
+%build
+cd NTS
+%{_bindir}/phpize
+%configure \
+ --enable-gender \
+ --with-php-config=%{_bindir}/php-config
+make %{?_smp_mflags}
+
+%if %{with_zts}
+cd ../ZTS
+%{_bindir}/zts-phpize
+%configure \
+ --enable-gender \
+ --with-php-config=%{_bindir}/zts-php-config
+make %{?_smp_mflags}
+%endif
+
+
+%install
+rm -rf %{buildroot}
+
+make -C NTS install INSTALL_ROOT=%{buildroot}
+
+# install config file
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
+
+# Install XML package description
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+
+%if %{with_zts}
+make -C ZTS install INSTALL_ROOT=%{buildroot}
+
+install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
+%endif
+
+# Documentation
+for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
+do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
+done
+
+
+# when pear installed alone, after us
+%triggerin -- %{?scl_prefix}php-pear
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+# posttrans as pear can be installed after us
+%posttrans
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+%postun
+if [ $1 -eq 0 -a -x %{__pecl} ] ; then
+ %{pecl_uninstall} %{pecl_name} >/dev/null || :
+fi
+
+
+%check
+cd NTS
+: Minimal load test for NTS extension
+%{__php} --no-php-ini \
+ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+
+%if %{with_tests}
+: Upstream test suite for NTS extension
+TEST_PHP_EXECUTABLE=%{__php} \
+TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+%{__php} -n run-tests.php --show-diff
+%endif
+
+%if %{with_zts}
+cd ../ZTS
+: Minimal load test for ZTS extension
+%{__ztsphp} --no-php-ini \
+ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+
+%if %{with_tests}
+: Upstream test suite for ZTS extension
+TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \
+TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+%{_bindir}/zts-php -n run-tests.php --show-diff
+%endif
+%endif
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc %{pecl_docdir}/%{pecl_name}
+%{?_licensedir:%license NTS/LICENSE}
+
+%{pecl_xmldir}/%{name}.xml
+%config(noreplace) %{php_inidir}/%{ini_name}
+%{php_extdir}/%{pecl_name}.so
+
+%if %{with_zts}
+%config(noreplace) %{php_ztsinidir}/%{ini_name}
+%{php_ztsextdir}/%{pecl_name}.so
+%endif
+
+
+%changelog
+* Mon Feb 16 2015 Remi Collet <remi@fedoraproject.org> - 0.4.0-1
+- initial package, version 0.4.0 (stable) \ No newline at end of file