Ref/trader-Phpdoc专题
trader_acos
Vector Trigonometric ACos
说明
array <span
class="methodname">trader_acos ( <span
class="type">array $real
)
Calculates the arc cosine for each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ad
Chaikin A/D Line
说明
array <span
class="methodname">trader_ad ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
, <span
class="type">array $volume
)
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
volume
成交量,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_add
Vector Arithmetic Add
说明
array <span
class="methodname">trader_add ( <span
class="type">array $real0
, <span
class="methodparam">array $real1
)
Calculates the vector addition of real0
to real1
and returns the
resulting vector.
参数
real0
浮点数数组。
real1
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_adosc
Chaikin A/D Oscillator
说明
array <span
class="methodname">trader_adosc ( <span
class="methodparam">array $high
,
array $low
, array
$close
, <span
class="type">array $volume
[, <span
class="methodparam">int $fastPeriod
[, int
$slowPeriod
]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
volume
成交量,浮点数数组。
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_adx
Average Directional Movement Index
说明
array <span
class="methodname">trader_adx ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_adxr
Average Directional Movement Index Rating
说明
array <span
class="methodname">trader_adxr ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_apo
Absolute Price Oscillator
说明
array <span
class="methodname">trader_apo ( <span
class="type">array $real
[, <span
class="methodparam">int $fastPeriod
[, int
$slowPeriod
[, <span
class="type">int $mAType
]]] )
参数
real
浮点数数组。
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
mAType
Type of Moving Average.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_aroon
Aroon
说明
array <span
class="methodname">trader_aroon ( <span
class="methodparam">array $high
,
array $low
[, int
$timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_aroonosc
Aroon Oscillator
说明
array <span
class="methodname">trader_aroonosc ( <span
class="methodparam">array $high
,
array $low
[, int
$timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_asin
Vector Trigonometric ASin
说明
array <span
class="methodname">trader_asin ( <span
class="type">array $real
)
Calculates the arc sine for each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_atan
Vector Trigonometric ATan
说明
array <span
class="methodname">trader_atan ( <span
class="type">array $real
)
Calculates the arc tangent for each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_atr
Average True Range
说明
array <span
class="methodname">trader_atr ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_avgprice
Average Price
说明
array <span
class="methodname">trader_avgprice ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_bbands
Bollinger Bands
说明
array <span
class="methodname">trader_bbands ( <span
class="methodparam">array $real
[,
int
$timePeriod
[, <span
class="type">float $nbDevUp
[, <span
class="methodparam">float $nbDevDn
[, int
$mAType
]]]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
nbDevUp
Deviation multiplier for upper band. Valid range from
TRADER_REAL_MIN to
TRADER_REAL_MAX.
nbDevDn
Deviation multiplier for lower band. Valid range from
TRADER_REAL_MIN to
TRADER_REAL_MAX.
mAType
Type of Moving Average.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_beta
Beta
说明
array <span
class="methodname">trader_beta ( <span
class="type">array $real0
, <span
class="methodparam">array $real1
[,
int
$timePeriod
] )
参数
real0
浮点数数组。
real1
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_bop
Balance Of Power
说明
array <span
class="methodname">trader_bop ( <span
class="type">array $open
, <span
class="methodparam">array $high
,
array $low
, array
$close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cci
Commodity Channel Index
说明
array <span
class="methodname">trader_cci ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_cdl2crows
Two Crows
说明
array <span
class="methodname">trader_cdl2crows ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3blackcrows
Three Black Crows
说明
array <span
class="methodname">trader_cdl3blackcrows ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3inside
Three Inside Up/Down
说明
array <span
class="methodname">trader_cdl3inside ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3linestrike
Three-Line Strike
说明
array <span
class="methodname">trader_cdl3linestrike ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3outside
Three Outside Up/Down
说明
array <span
class="methodname">trader_cdl3outside ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3starsinsouth
Three Stars In The South
说明
array <span
class="methodname">trader_cdl3starsinsouth ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdl3whitesoldiers
Three Advancing White Soldiers
说明
array <span
class="methodname">trader_cdl3whitesoldiers ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlabandonedbaby
Abandoned Baby
说明
array <span
class="methodname">trader_cdlabandonedbaby ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdladvanceblock
Advance Block
说明
array <span
class="methodname">trader_cdladvanceblock ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlbelthold
Belt-hold
说明
array <span
class="methodname">trader_cdlbelthold ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlbreakaway
Breakaway
说明
array <span
class="methodname">trader_cdlbreakaway ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlclosingmarubozu
Closing Marubozu
说明
array <span
class="methodname">trader_cdlclosingmarubozu ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlconcealbabyswall
Concealing Baby Swallow
说明
array <span
class="methodname">trader_cdlconcealbabyswall ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlcounterattack
Counterattack
说明
array <span
class="methodname">trader_cdlcounterattack ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdldarkcloudcover
Dark Cloud Cover
说明
array <span
class="methodname">trader_cdldarkcloudcover ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdldoji
Doji
说明
array <span
class="methodname">trader_cdldoji ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdldojistar
Doji Star
说明
array <span
class="methodname">trader_cdldojistar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdldragonflydoji
Dragonfly Doji
说明
array <span
class="methodname">trader_cdldragonflydoji ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlengulfing
Engulfing Pattern
说明
array <span
class="methodname">trader_cdlengulfing ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdleveningdojistar
Evening Doji Star
说明
array <span
class="methodname">trader_cdleveningdojistar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdleveningstar
Evening Star
说明
array <span
class="methodname">trader_cdleveningstar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdlgapsidesidewhite
Up/Down-gap side-by-side white lines
说明
array <span
class="methodname">trader_cdlgapsidesidewhite ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlgravestonedoji
Gravestone Doji
说明
array <span
class="methodname">trader_cdlgravestonedoji ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhammer
Hammer
说明
array <span
class="methodname">trader_cdlhammer ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhangingman
Hanging Man
说明
array <span
class="methodname">trader_cdlhangingman ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlharami
Harami Pattern
说明
array <span
class="methodname">trader_cdlharami ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlharamicross
Harami Cross Pattern
说明
array <span
class="methodname">trader_cdlharamicross ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhighwave
High-Wave Candle
说明
array <span
class="methodname">trader_cdlhighwave ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhikkake
Hikkake Pattern
说明
array <span
class="methodname">trader_cdlhikkake ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhikkakemod
Modified Hikkake Pattern
说明
array <span
class="methodname">trader_cdlhikkakemod ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlhomingpigeon
Homing Pigeon
说明
array <span
class="methodname">trader_cdlhomingpigeon ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlidentical3crows
Identical Three Crows
说明
array <span
class="methodname">trader_cdlidentical3crows ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlinneck
In-Neck Pattern
说明
array <span
class="methodname">trader_cdlinneck ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlinvertedhammer
Inverted Hammer
说明
array <span
class="methodname">trader_cdlinvertedhammer ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlkicking
Kicking
说明
array <span
class="methodname">trader_cdlkicking ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlkickingbylength
Kicking - bull/bear determined by the longer marubozu
说明
array <span
class="methodname">trader_cdlkickingbylength ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlladderbottom
Ladder Bottom
说明
array <span
class="methodname">trader_cdlladderbottom ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdllongleggeddoji
Long Legged Doji
说明
array <span
class="methodname">trader_cdllongleggeddoji ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdllongline
Long Line Candle
说明
array <span
class="methodname">trader_cdllongline ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlmarubozu
Marubozu
说明
array <span
class="methodname">trader_cdlmarubozu ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlmatchinglow
Matching Low
说明
array <span
class="methodname">trader_cdlmatchinglow ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlmathold
Mat Hold
说明
array <span
class="methodname">trader_cdlmathold ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdlmorningdojistar
Morning Doji Star
说明
array <span
class="methodname">trader_cdlmorningdojistar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdlmorningstar
Morning Star
说明
array <span
class="methodname">trader_cdlmorningstar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
[, <span
class="methodparam">float
$penetration
] )
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
penetration
一个烛台渗入到另一个烛台的百分比。
返回值
Returns an array with calculated data or false on failure.
trader_cdlonneck
On-Neck Pattern
说明
array <span
class="methodname">trader_cdlonneck ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlpiercing
Piercing Pattern
说明
array <span
class="methodname">trader_cdlpiercing ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlrickshawman
Rickshaw Man
说明
array <span
class="methodname">trader_cdlrickshawman ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlrisefall3methods
Rising/Falling Three Methods
说明
array <span
class="methodname">trader_cdlrisefall3methods ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlseparatinglines
Separating Lines
说明
array <span
class="methodname">trader_cdlseparatinglines ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlshootingstar
Shooting Star
说明
array <span
class="methodname">trader_cdlshootingstar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlshortline
Short Line Candle
说明
array <span
class="methodname">trader_cdlshortline ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlspinningtop
Spinning Top
说明
array <span
class="methodname">trader_cdlspinningtop ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlstalledpattern
Stalled Pattern
说明
array <span
class="methodname">trader_cdlstalledpattern ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlsticksandwich
Stick Sandwich
说明
array <span
class="methodname">trader_cdlsticksandwich ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdltakuri
Takuri (Dragonfly Doji with very long lower shadow)
说明
array <span
class="methodname">trader_cdltakuri ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdltasukigap
Tasuki Gap
说明
array <span
class="methodname">trader_cdltasukigap ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlthrusting
Thrusting Pattern
说明
array <span
class="methodname">trader_cdlthrusting ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdltristar
Tristar Pattern
说明
array <span
class="methodname">trader_cdltristar ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlunique3river
Unique 3 River
说明
array <span
class="methodname">trader_cdlunique3river ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlupsidegap2crows
Upside Gap Two Crows
说明
array <span
class="methodname">trader_cdlupsidegap2crows ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cdlxsidegap3methods
Upside/Downside Gap Three Methods
说明
array <span
class="methodname">trader_cdlxsidegap3methods ( <span
class="methodparam">array $open
,
array $high
, array
$low
, <span
class="type">array $close
)
参数
open
开盘价,浮点数数组。
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ceil
Vector Ceil
说明
array <span
class="methodname">trader_ceil ( <span
class="type">array $real
)
Calculates the next highest integer for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cmo
Chande Momentum Oscillator
说明
array <span
class="methodname">trader_cmo ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_correl
Pearson's Correlation Coefficient (r)
说明
array <span
class="methodname">trader_correl ( <span
class="methodparam">array $real0
,
array
$real1
[, <span
class="type">int $timePeriod
] )
参数
real0
浮点数数组。
real1
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_cos
Vector Trigonometric Cos
说明
array <span
class="methodname">trader_cos ( <span
class="type">array $real
)
Calculates the cosine for each value in real
and returns the resulting
array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_cosh
Vector Trigonometric Cosh
说明
array <span
class="methodname">trader_cosh ( <span
class="type">array $real
)
Calculates the hyperbolic cosine for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_dema
Double Exponential Moving Average
说明
array <span
class="methodname">trader_dema ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_div
Vector Arithmetic Div
说明
array <span
class="methodname">trader_div ( <span
class="type">array $real0
, <span
class="methodparam">array $real1
)
Divides each value from real0
by the corresponding value from real1
and returns the resulting array.
参数
real0
浮点数数组。
real1
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_dx
Directional Movement Index
说明
array <span
class="methodname">trader_dx ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_ema
Exponential Moving Average
说明
array <span
class="methodname">trader_ema ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_errno
Get error code
说明
int <span class="methodname">trader_errno ( <span class="methodparam">void )
Get error code of the last operation.
返回值
Returns the error code identified by one of the TRADERERR* constants.
trader_exp
Vector Arithmetic Exp
说明
array <span
class="methodname">trader_exp ( <span
class="type">array $real
)
Calculates e
raised to the power of each value in real
. Returns
an array with the calculated data.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_floor
Vector Floor
说明
array <span
class="methodname">trader_floor ( <span
class="methodparam">array $real
)
Calculates the next lowest integer for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_get_compat
Get compatibility mode
说明
int <span class="methodname">trader_get_compat ( <span class="methodparam">void )
Get compatibility mode which affects the way calculations are done by all the extension functions.
返回值
Returns the compatibility mode id which can be identified by TRADERCOMPATIBILITY* series of constants.
trader_get_unstable_period
Get unstable period
说明
int <span
class="methodname">trader_get_unstable_period ( <span
class="methodparam">int $functionId
)
Get unstable period factor for a particular function.
参数
functionId
Function ID the factor to be read for.
TRADER_FUNCUNST*
series of constants should be used.
返回值
Returns the unstable period factor for the corresponding function.
trader_ht_dcperiod
Hilbert Transform - Dominant Cycle Period
说明
array <span
class="methodname">trader_ht_dcperiod ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ht_dcphase
Hilbert Transform - Dominant Cycle Phase
说明
array <span
class="methodname">trader_ht_dcphase ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ht_phasor
Hilbert Transform - Phasor Components
说明
array <span
class="methodname">trader_ht_phasor ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ht_sine
Hilbert Transform - SineWave
说明
array <span
class="methodname">trader_ht_sine ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ht_trendline
Hilbert Transform - Instantaneous Trendline
说明
array <span
class="methodname">trader_ht_trendline ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ht_trendmode
Hilbert Transform - Trend vs Cycle Mode
说明
array <span
class="methodname">trader_ht_trendmode ( <span
class="methodparam">array $real
)
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_kama
Kaufman Adaptive Moving Average
说明
array <span
class="methodname">trader_kama ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_linearreg_angle
Linear Regression Angle
说明
array <span
class="methodname">trader_linearreg_angle ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_linearreg_intercept
Linear Regression Intercept
说明
array <span
class="methodname">trader_linearreg_intercept ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_linearreg_slope
Linear Regression Slope
说明
array <span
class="methodname">trader_linearreg_slope ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_linearreg
Linear Regression
说明
array <span
class="methodname">trader_linearreg ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_ln
Vector Log Natural
说明
array <span
class="methodname">trader_ln ( <span
class="type">array $real
)
Calculates the natural logarithm for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_log10
Vector Log10
说明
array <span
class="methodname">trader_log10 ( <span
class="methodparam">array $real
)
Calculates the base-10 logarithm for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ma
Moving average
说明
array <span
class="methodname">trader_ma ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
[, int
$mAType
]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
mAType
Type of Moving Average.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_macd
Moving Average Convergence/Divergence
说明
array <span
class="methodname">trader_macd ( <span
class="type">array $real
[, <span
class="methodparam">int $fastPeriod
[, int
$slowPeriod
[, <span
class="type">int $signalPeriod
]]] )
参数
real
浮点数数组。
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
signalPeriod
Smoothing for the signal line (nb of period). Valid range from 1
to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_macdext
MACD with controllable MA type
说明
array <span
class="methodname">trader_macdext ( <span
class="methodparam">array $real
[,
int
$fastPeriod
[, <span
class="type">int $fastMAType
[, <span
class="methodparam">int $slowPeriod
[, int
$slowMAType
[, <span
class="type">int $signalPeriod
[, <span
class="methodparam">int $signalMAType
]]]]]] )
参数
real
浮点数数组。
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
fastMAType
Type of Moving Average for fast MA.
TRADER_MATYPE*
series of constants should be used.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
slowMAType
Type of Moving Average for slow MA.
TRADER_MATYPE*
series of constants should be used.
signalPeriod
Smoothing for the signal line (nb of period). Valid range from 1
to 100000.
signalMAType
Type of Moving Average for signal line.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_macdfix
Moving Average Convergence/Divergence Fix 12/26
说明
array <span
class="methodname">trader_macdfix ( <span
class="methodparam">array $real
[,
int
$signalPeriod
] )
参数
real
浮点数数组。
signalPeriod
Smoothing for the signal line (nb of period). Valid range from 1
to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_mama
MESA Adaptive Moving Average
说明
array <span
class="methodname">trader_mama ( <span
class="type">array $real
[, <span
class="methodparam">float $fastLimit
[, float
$slowLimit
]] )
参数
real
浮点数数组。
fastLimit
Upper limit use in the adaptive algorithm. Valid range from 0.01 to
0.99.
slowLimit
Lower limit use in the adaptive algorithm. Valid range from 0.01 to
0.99.
返回值
Returns an array with calculated data or false on failure.
trader_mavp
Moving average with variable period
说明
array <span
class="methodname">trader_mavp ( <span
class="type">array $real
, <span
class="methodparam">array $periods
[, int
$minPeriod
[, <span
class="type">int $maxPeriod
[, <span
class="methodparam">int $mAType
]]] )
参数
real
浮点数数组。
periods
浮点数数组。
minPeriod
Value less than minimum will be changed to Minimum period. Valid range
from 2 to 100000
maxPeriod
Value higher than minimum will be changed to Maximum period. Valid range
from 2 to 100000
mAType
Type of Moving Average.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_max
Highest value over a specified period
说明
array <span
class="methodname">trader_max ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_maxindex
Index of highest value over a specified period
说明
array <span
class="methodname">trader_maxindex ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_medprice
Median Price
说明
array <span
class="methodname">trader_medprice ( <span
class="methodparam">array $high
,
array $low
)
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_mfi
Money Flow Index
说明
array <span
class="methodname">trader_mfi ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
, <span
class="type">array $volume
[, <span
class="methodparam">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
volume
成交量,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_midpoint
MidPoint over period
说明
array <span
class="methodname">trader_midpoint ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_midprice
Midpoint Price over period
说明
array <span
class="methodname">trader_midprice ( <span
class="methodparam">array $high
,
array $low
[, int
$timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_min
Lowest value over a specified period
说明
array <span
class="methodname">trader_min ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_minindex
Index of lowest value over a specified period
说明
array <span
class="methodname">trader_minindex ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_minmax
Lowest and highest values over a specified period
说明
array <span
class="methodname">trader_minmax ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_minmaxindex
Indexes of lowest and highest values over a specified period
说明
array <span
class="methodname">trader_minmaxindex ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_minus_di
Minus Directional Indicator
说明
array <span
class="methodname">trader_minus_di ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_minus_dm
Minus Directional Movement
说明
array <span
class="methodname">trader_minus_dm ( <span
class="methodparam">array $high
,
array $low
[, int
$timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_mom
Momentum
说明
array <span
class="methodname">trader_mom ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_mult
Vector Arithmetic Mult
说明
array <span
class="methodname">trader_mult ( <span
class="type">array $real0
, <span
class="methodparam">array $real1
)
Calculates the vector dot product of real0
with real1
and returns
the resulting vector.
参数
real0
浮点数数组。
real1
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_natr
Normalized Average True Range
说明
array <span
class="methodname">trader_natr ( <span
class="type">array $high
, <span
class="methodparam">array $low
,
array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_obv
On Balance Volume
说明
array <span
class="methodname">trader_obv ( <span
class="type">array $real
, <span
class="methodparam">array $volume
)
参数
real
浮点数数组。
volume
成交量,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_plus_di
Plus Directional Indicator
说明
array <span
class="methodname">trader_plus_di ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_plus_dm
Plus Directional Movement
说明
array <span
class="methodname">trader_plus_dm ( <span
class="methodparam">array $high
,
array $low
[, int
$timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_ppo
Percentage Price Oscillator
说明
array <span
class="methodname">trader_ppo ( <span
class="type">array $real
[, <span
class="methodparam">int $fastPeriod
[, int
$slowPeriod
[, <span
class="type">int $mAType
]]] )
参数
real
浮点数数组。
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
mAType
Type of Moving Average.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_roc
Rate of change : ((price/prevPrice)-1)*100
说明
array <span
class="methodname">trader_roc ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_rocp
Rate of change Percentage: (price-prevPrice)/prevPrice
说明
array <span
class="methodname">trader_rocp ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_rocr100
Rate of change ratio 100 scale: (price/prevPrice)*100
说明
array <span
class="methodname">trader_rocr100 ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_rocr
Rate of change ratio: (price/prevPrice)
说明
array <span
class="methodname">trader_rocr ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_rsi
Relative Strength Index
说明
array <span
class="methodname">trader_rsi ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_sar
Parabolic SAR
说明
array <span
class="methodname">trader_sar ( <span
class="type">array $high
, <span
class="methodparam">array $low
[,
float
$acceleration
[, <span
class="type">float $maximum
]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
acceleration
Acceleration Factor used up to the Maximum value. Valid range from 0 to
TRADER_REAL_MAX.
maximum
Acceleration Factor Maximum value. Valid range from 0 to
TRADER_REAL_MAX.
返回值
Returns an array with calculated data or false on failure.
trader_sarext
Parabolic SAR - Extended
说明
array <span
class="methodname">trader_sarext ( <span
class="methodparam">array $high
,
array $low
[, float
$startValue
[, <span
class="type">float $offsetOnReverse
[, <span
class="methodparam">float
$accelerationInitLong
[, <span
class="type">float $accelerationLong
[, <span
class="methodparam">float
$accelerationMaxLong
[, <span
class="type">float $accelerationInitShort
[, <span
class="methodparam">float
$accelerationShort
[, <span
class="type">float $accelerationMaxShort
]]]]]]]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
startValue
Start value and direction. 0 for Auto, >0 for Long, \<0 for Short.
Valid range from
TRADER_REAL_MIN to
TRADER_REAL_MAX.
offsetOnReverse
Percent offset added/removed to initial stop on short/long reversal.
Valid range from 0 to
TRADER_REAL_MAX.
accelerationInitLong
Acceleration Factor initial value for the Long direction. Valid range
from 0 to
TRADER_REAL_MAX.
accelerationLong
Acceleration Factor for the Long direction. Valid range from 0 to
TRADER_REAL_MAX.
accelerationMaxLong
Acceleration Factor maximum value for the Long direction. Valid range
from 0 to
TRADER_REAL_MAX.
accelerationInitShort
Acceleration Factor initial value for the Short direction. Valid range
from 0 to
TRADER_REAL_MAX.
accelerationShort
Acceleration Factor for the Short direction. Valid range from 0 to
TRADER_REAL_MAX.
accelerationMaxShort
Acceleration Factor maximum value for the Short direction. Valid range
from 0 to
TRADER_REAL_MAX.
返回值
Returns an array with calculated data or false on failure.
trader_set_compat
Set compatibility mode
说明
void <span
class="methodname">trader_set_compat ( <span
class="methodparam">int $compatId
)
Set compatibility mode which will affect the way calculations are done by all the extension functions.
参数
compatId
Compatibility Id.
TRADERCOMPATIBILITY*
series of constants should be used.
返回值
没有返回值。
trader_set_unstable_period
Set unstable period
说明
void <span
class="methodname">trader_set_unstable_period ( <span
class="methodparam">int $functionId
,
int
$timePeriod
)
Influences unstable period factor for functions, which are sensible to it. More information about unstable periods can be found on the » TA-Lib API documentation page.
参数
functionId
Function ID the factor should be set for.
TRADER_FUNCUNST*
constant series can be used to affect the corresponding function.
timePeriod
Unstable period value.
返回值
没有返回值。
trader_sin
Vector Trigonometric Sin
说明
array <span
class="methodname">trader_sin ( <span
class="type">array $real
)
Calculates the sine for each value in real
and returns the resulting
array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_sinh
Vector Trigonometric Sinh
说明
array <span
class="methodname">trader_sinh ( <span
class="type">array $real
)
Calculates the hyperbolic sine for each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_sma
Simple Moving Average
说明
array <span
class="methodname">trader_sma ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_sqrt
Vector Square Root
说明
array <span
class="methodname">trader_sqrt ( <span
class="type">array $real
)
Calculates the square root of each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_stddev
Standard Deviation
说明
array <span
class="methodname">trader_stddev ( <span
class="methodparam">array $real
[,
int
$timePeriod
[, <span
class="type">float $nbDev
]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
nbDev
返回值
Returns an array with calculated data or false on failure.
trader_stoch
Stochastic
说明
array <span
class="methodname">trader_stoch ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $fastK_Period
[, <span
class="methodparam">int $slowK_Period
[, int
$slowK_MAType
[, <span
class="type">int $slowD_Period
[, <span
class="methodparam">int $slowD_MAType
]]]]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
fastK_Period
Time period for building the Fast-K line. Valid range from 1 to 100000.
slowK_Period
Smoothing for making the Slow-K line. Valid range from 1 to 100000,
usually set to 3.
slowK_MAType
Type of Moving Average for Slow-K.
TRADER_MATYPE*
series of constants should be used.
slowD_Period
Smoothing for making the Slow-D line. Valid range from 1 to 100000.
slowD_MAType
Type of Moving Average for Slow-D.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_stochf
Stochastic Fast
说明
array <span
class="methodname">trader_stochf ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $fastK_Period
[, <span
class="methodparam">int $fastD_Period
[, int
$fastD_MAType
]]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
fastK_Period
Time period for building the Fast-K line. Valid range from 1 to 100000.
fastD_Period
Smoothing for making the Fast-D line. Valid range from 1 to 100000,
usually set to 3.
fastD_MAType
Type of Moving Average for Fast-D.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_stochrsi
Stochastic Relative Strength Index
说明
array <span
class="methodname">trader_stochrsi ( <span
class="methodparam">array $real
[,
int
$timePeriod
[, <span
class="type">int $fastK_Period
[, <span
class="methodparam">int $fastD_Period
[, int
$fastD_MAType
]]]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
fastK_Period
Time period for building the Fast-K line. Valid range from 1 to 100000.
fastD_Period
Smoothing for making the Fast-D line. Valid range from 1 to 100000,
usually set to 3.
fastD_MAType
Type of Moving Average for Fast-D.
TRADER_MATYPE*
series of constants should be used.
返回值
Returns an array with calculated data or false on failure.
trader_sub
Vector Arithmetic Subtraction
说明
array <span
class="methodname">trader_sub ( <span
class="type">array $real0
, <span
class="methodparam">array $real1
)
Calculates the vector subtraction of real1
from real0
and returns
the resulting vector.
参数
real0
浮点数数组。
real1
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_sum
Summation
说明
array <span
class="methodname">trader_sum ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_t3
Triple Exponential Moving Average (T3)
说明
array <span
class="methodname">trader_t3 ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
[, float
$vFactor
]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
vFactor
成交量因子。有效值从 0 到 1。
返回值
Returns an array with calculated data or false on failure.
trader_tan
Vector Trigonometric Tan
说明
array <span
class="methodname">trader_tan ( <span
class="type">array $real
)
Calculates the tangent for each value in real
and returns the
resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_tanh
Vector Trigonometric Tanh
说明
array <span
class="methodname">trader_tanh ( <span
class="type">array $real
)
Calculates the hyperbolic tangent for each value in real
and returns
the resulting array.
参数
real
浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_tema
Triple Exponential Moving Average
说明
array <span
class="methodname">trader_tema ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_trange
True Range
说明
array <span
class="methodname">trader_trange ( <span
class="methodparam">array $high
,
array $low
, array
$close
)
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_trima
Triangular Moving Average
说明
array <span
class="methodname">trader_trima ( <span
class="methodparam">array $real
[,
int
$timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_trix
1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
说明
array <span
class="methodname">trader_trix ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_tsf
Time Series Forecast
说明
array <span
class="methodname">trader_tsf ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_typprice
Typical Price
说明
array <span
class="methodname">trader_typprice ( <span
class="methodparam">array $high
,
array $low
, array
$close
)
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_ultosc
Ultimate Oscillator
说明
array <span
class="methodname">trader_ultosc ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $timePeriod1
[, <span
class="methodparam">int $timePeriod2
[, int
$timePeriod3
]]] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod1
Number of bars for 1st period. Valid range from 1 to 100000.
timePeriod2
Number of bars for 2nd period. Valid range from 1 to 100000.
timePeriod3
Number of bars for 3rd period. Valid range from 1 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_var
Variance
说明
array <span
class="methodname">trader_var ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
[, float
$nbDev
]] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
nbDev
返回值
Returns an array with calculated data or false on failure.
trader_wclprice
Weighted Close Price
说明
array <span
class="methodname">trader_wclprice ( <span
class="methodparam">array $high
,
array $low
, array
$close
)
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
返回值
Returns an array with calculated data or false on failure.
trader_willr
Williams' %R
说明
array <span
class="methodname">trader_willr ( <span
class="methodparam">array $high
,
array $low
, array
$close
[, <span
class="type">int $timePeriod
] )
参数
high
高价,浮点数数组。
low
低价,浮点数数组。
close
收盘价,浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
trader_wma
Weighted Moving Average
说明
array <span
class="methodname">trader_wma ( <span
class="type">array $real
[, <span
class="methodparam">int $timePeriod
] )
参数
real
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
返回值
Returns an array with calculated data or false on failure.
目录
- trader_acos — Vector Trigonometric ACos
- trader_ad — Chaikin A/D Line
- trader_add — Vector Arithmetic Add
- trader_adosc — Chaikin A/D Oscillator
- trader_adx — Average Directional Movement Index
- trader_adxr — Average Directional Movement Index Rating
- trader_apo — Absolute Price Oscillator
- trader_aroon — Aroon
- trader_aroonosc — Aroon Oscillator
- trader_asin — Vector Trigonometric ASin
- trader_atan — Vector Trigonometric ATan
- trader_atr — Average True Range
- trader_avgprice — Average Price
- trader_bbands — Bollinger Bands
- trader_beta — Beta
- trader_bop — Balance Of Power
- trader_cci — Commodity Channel Index
- trader_cdl2crows — Two Crows
- trader_cdl3blackcrows — Three Black Crows
- trader_cdl3inside — Three Inside Up/Down
- trader_cdl3linestrike — Three-Line Strike
- trader_cdl3outside — Three Outside Up/Down
- trader_cdl3starsinsouth — Three Stars In The South
- trader_cdl3whitesoldiers — Three Advancing White Soldiers
- trader_cdlabandonedbaby — Abandoned Baby
- trader_cdladvanceblock — Advance Block
- trader_cdlbelthold — Belt-hold
- trader_cdlbreakaway — Breakaway
- trader_cdlclosingmarubozu — Closing Marubozu
- trader_cdlconcealbabyswall — Concealing Baby Swallow
- trader_cdlcounterattack — Counterattack
- trader_cdldarkcloudcover — Dark Cloud Cover
- trader_cdldoji — Doji
- trader_cdldojistar — Doji Star
- trader_cdldragonflydoji — Dragonfly Doji
- trader_cdlengulfing — Engulfing Pattern
- trader_cdleveningdojistar — Evening Doji Star
- trader_cdleveningstar — Evening Star
- trader_cdlgapsidesidewhite — Up/Down-gap side-by-side white lines
- trader_cdlgravestonedoji — Gravestone Doji
- trader_cdlhammer — Hammer
- trader_cdlhangingman — Hanging Man
- trader_cdlharami — Harami Pattern
- trader_cdlharamicross — Harami Cross Pattern
- trader_cdlhighwave — High-Wave Candle
- trader_cdlhikkake — Hikkake Pattern
- trader_cdlhikkakemod — Modified Hikkake Pattern
- trader_cdlhomingpigeon — Homing Pigeon
- trader_cdlidentical3crows — Identical Three Crows
- trader_cdlinneck — In-Neck Pattern
- trader_cdlinvertedhammer — Inverted Hammer
- trader_cdlkicking — Kicking
- trader_cdlkickingbylength — Kicking - bull/bear determined by the longer marubozu
- trader_cdlladderbottom — Ladder Bottom
- trader_cdllongleggeddoji — Long Legged Doji
- trader_cdllongline — Long Line Candle
- trader_cdlmarubozu — Marubozu
- trader_cdlmatchinglow — Matching Low
- trader_cdlmathold — Mat Hold
- trader_cdlmorningdojistar — Morning Doji Star
- trader_cdlmorningstar — Morning Star
- trader_cdlonneck — On-Neck Pattern
- trader_cdlpiercing — Piercing Pattern
- trader_cdlrickshawman — Rickshaw Man
- trader_cdlrisefall3methods — Rising/Falling Three Methods
- trader_cdlseparatinglines — Separating Lines
- trader_cdlshootingstar — Shooting Star
- trader_cdlshortline — Short Line Candle
- trader_cdlspinningtop — Spinning Top
- trader_cdlstalledpattern — Stalled Pattern
- trader_cdlsticksandwich — Stick Sandwich
- trader_cdltakuri — Takuri (Dragonfly Doji with very long lower shadow)
- trader_cdltasukigap — Tasuki Gap
- trader_cdlthrusting — Thrusting Pattern
- trader_cdltristar — Tristar Pattern
- trader_cdlunique3river — Unique 3 River
- trader_cdlupsidegap2crows — Upside Gap Two Crows
- trader_cdlxsidegap3methods — Upside/Downside Gap Three Methods
- trader_ceil — Vector Ceil
- trader_cmo — Chande Momentum Oscillator
- trader_correl — Pearson's Correlation Coefficient (r)
- trader_cos — Vector Trigonometric Cos
- trader_cosh — Vector Trigonometric Cosh
- trader_dema — Double Exponential Moving Average
- trader_div — Vector Arithmetic Div
- trader_dx — Directional Movement Index
- trader_ema — Exponential Moving Average
- trader_errno — Get error code
- trader_exp — Vector Arithmetic Exp
- trader_floor — Vector Floor
- trader_get_compat — Get compatibility mode
- trader_get_unstable_period — Get unstable period
- trader_ht_dcperiod — Hilbert Transform - Dominant Cycle Period
- trader_ht_dcphase — Hilbert Transform - Dominant Cycle Phase
- trader_ht_phasor — Hilbert Transform - Phasor Components
- trader_ht_sine — Hilbert Transform - SineWave
- trader_ht_trendline — Hilbert Transform - Instantaneous Trendline
- trader_ht_trendmode — Hilbert Transform - Trend vs Cycle Mode
- trader_kama — Kaufman Adaptive Moving Average
- trader_linearreg_angle — Linear Regression Angle
- trader_linearreg_intercept — Linear Regression Intercept
- trader_linearreg_slope — Linear Regression Slope
- trader_linearreg — Linear Regression
- trader_ln — Vector Log Natural
- trader_log10 — Vector Log10
- trader_ma — Moving average
- trader_macd — Moving Average Convergence/Divergence
- trader_macdext — MACD with controllable MA type
- trader_macdfix — Moving Average Convergence/Divergence Fix 12/26
- trader_mama — MESA Adaptive Moving Average
- trader_mavp — Moving average with variable period
- trader_max — Highest value over a specified period
- trader_maxindex — Index of highest value over a specified period
- trader_medprice — Median Price
- trader_mfi — Money Flow Index
- trader_midpoint — MidPoint over period
- trader_midprice — Midpoint Price over period
- trader_min — Lowest value over a specified period
- trader_minindex — Index of lowest value over a specified period
- trader_minmax — Lowest and highest values over a specified period
- trader_minmaxindex — Indexes of lowest and highest values over a specified period
- trader_minus_di — Minus Directional Indicator
- trader_minus_dm — Minus Directional Movement
- trader_mom — Momentum
- trader_mult — Vector Arithmetic Mult
- trader_natr — Normalized Average True Range
- trader_obv — On Balance Volume
- trader_plus_di — Plus Directional Indicator
- trader_plus_dm — Plus Directional Movement
- trader_ppo — Percentage Price Oscillator
- trader_roc — Rate of change : ((price/prevPrice)-1)*100
- trader_rocp — Rate of change Percentage: (price-prevPrice)/prevPrice
- trader_rocr100 — Rate of change ratio 100 scale: (price/prevPrice)*100
- trader_rocr — Rate of change ratio: (price/prevPrice)
- trader_rsi — Relative Strength Index
- trader_sar — Parabolic SAR
- trader_sarext — Parabolic SAR - Extended
- trader_set_compat — Set compatibility mode
- trader_set_unstable_period — Set unstable period
- trader_sin — Vector Trigonometric Sin
- trader_sinh — Vector Trigonometric Sinh
- trader_sma — Simple Moving Average
- trader_sqrt — Vector Square Root
- trader_stddev — Standard Deviation
- trader_stoch — Stochastic
- trader_stochf — Stochastic Fast
- trader_stochrsi — Stochastic Relative Strength Index
- trader_sub — Vector Arithmetic Subtraction
- trader_sum — Summation
- trader_t3 — Triple Exponential Moving Average (T3)
- trader_tan — Vector Trigonometric Tan
- trader_tanh — Vector Trigonometric Tanh
- trader_tema — Triple Exponential Moving Average
- trader_trange — True Range
- trader_trima — Triangular Moving Average
- trader_trix — 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
- trader_tsf — Time Series Forecast
- trader_typprice — Typical Price
- trader_ultosc — Ultimate Oscillator
- trader_var — Variance
- trader_wclprice — Weighted Close Price
- trader_willr — Williams' %R
- trader_wma — Weighted Moving Average