trader_acos

Vector Trigonometric ACos

说明

array trader_acos ( 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 trader_ad ( array $high , array $low , array $close , array $volume )

参数

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

volume
成交量,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_add

Vector Arithmetic Add

说明

array trader_add ( array $real0 , 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 trader_adosc ( array $high , array $low , array $close , array $volume [, 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 trader_adx ( array $high , array $low , array $close [, 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 trader_adxr ( array $high , array $low , array $close [, 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 trader_apo ( array $real [, int $fastPeriod [, int $slowPeriod [, 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_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_aroon

Aroon

说明

array trader_aroon ( 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 trader_aroonosc ( 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 trader_asin ( 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 trader_atan ( 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 trader_atr ( array $high , array $low , array $close [, 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 trader_avgprice ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_bbands

Bollinger Bands

说明

array trader_bbands ( array $real [, int $timePeriod [, float $nbDevUp [, 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_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_beta

Beta

说明

array trader_beta ( array $real0 , 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 trader_bop ( array $open , 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 trader_cci ( array $high , array $low , array $close [, 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 trader_cdl2crows ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3blackcrows

Three Black Crows

说明

array trader_cdl3blackcrows ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3inside

Three Inside Up/Down

说明

array trader_cdl3inside ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3linestrike

Three-Line Strike

说明

array trader_cdl3linestrike ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3outside

Three Outside Up/Down

说明

array trader_cdl3outside ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3starsinsouth

Three Stars In The South

说明

array trader_cdl3starsinsouth ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdl3whitesoldiers

Three Advancing White Soldiers

说明

array trader_cdl3whitesoldiers ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlabandonedbaby

Abandoned Baby

说明

array trader_cdlabandonedbaby ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdladvanceblock

Advance Block

说明

array trader_cdladvanceblock ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlbelthold

Belt-hold

说明

array trader_cdlbelthold ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlbreakaway

Breakaway

说明

array trader_cdlbreakaway ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlclosingmarubozu

Closing Marubozu

说明

array trader_cdlclosingmarubozu ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlconcealbabyswall

Concealing Baby Swallow

说明

array trader_cdlconcealbabyswall ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlcounterattack

Counterattack

说明

array trader_cdlcounterattack ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdldarkcloudcover

Dark Cloud Cover

说明

array trader_cdldarkcloudcover ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdldoji

Doji

说明

array trader_cdldoji ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdldojistar

Doji Star

说明

array trader_cdldojistar ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdldragonflydoji

Dragonfly Doji

说明

array trader_cdldragonflydoji ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlengulfing

Engulfing Pattern

说明

array trader_cdlengulfing ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdleveningdojistar

Evening Doji Star

说明

array trader_cdleveningdojistar ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdleveningstar

Evening Star

说明

array trader_cdleveningstar ( array $open , array $high , array $low , array $close [, 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 trader_cdlgapsidesidewhite ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlgravestonedoji

Gravestone Doji

说明

array trader_cdlgravestonedoji ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhammer

Hammer

说明

array trader_cdlhammer ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhangingman

Hanging Man

说明

array trader_cdlhangingman ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlharami

Harami Pattern

说明

array trader_cdlharami ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlharamicross

Harami Cross Pattern

说明

array trader_cdlharamicross ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhighwave

High-Wave Candle

说明

array trader_cdlhighwave ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhikkake

Hikkake Pattern

说明

array trader_cdlhikkake ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhikkakemod

Modified Hikkake Pattern

说明

array trader_cdlhikkakemod ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlhomingpigeon

Homing Pigeon

说明

array trader_cdlhomingpigeon ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlidentical3crows

Identical Three Crows

说明

array trader_cdlidentical3crows ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlinneck

In-Neck Pattern

说明

array trader_cdlinneck ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlinvertedhammer

Inverted Hammer

说明

array trader_cdlinvertedhammer ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlkicking

Kicking

说明

array trader_cdlkicking ( array $open , array $high , array $low , 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 trader_cdlkickingbylength ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlladderbottom

Ladder Bottom

说明

array trader_cdlladderbottom ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdllongleggeddoji

Long Legged Doji

说明

array trader_cdllongleggeddoji ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdllongline

Long Line Candle

说明

array trader_cdllongline ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlmarubozu

Marubozu

说明

array trader_cdlmarubozu ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlmatchinglow

Matching Low

说明

array trader_cdlmatchinglow ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlmathold

Mat Hold

说明

array trader_cdlmathold ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdlmorningdojistar

Morning Doji Star

说明

array trader_cdlmorningdojistar ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdlmorningstar

Morning Star

说明

array trader_cdlmorningstar ( array $open , array $high , array $low , array $close [, float $penetration ] )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

penetration
一个烛台渗入到另一个烛台的百分比。

返回值

Returns an array with calculated data or false on failure.

trader_cdlonneck

On-Neck Pattern

说明

array trader_cdlonneck ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlpiercing

Piercing Pattern

说明

array trader_cdlpiercing ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlrickshawman

Rickshaw Man

说明

array trader_cdlrickshawman ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlrisefall3methods

Rising/Falling Three Methods

说明

array trader_cdlrisefall3methods ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlseparatinglines

Separating Lines

说明

array trader_cdlseparatinglines ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlshootingstar

Shooting Star

说明

array trader_cdlshootingstar ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlshortline

Short Line Candle

说明

array trader_cdlshortline ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlspinningtop

Spinning Top

说明

array trader_cdlspinningtop ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlstalledpattern

Stalled Pattern

说明

array trader_cdlstalledpattern ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlsticksandwich

Stick Sandwich

说明

array trader_cdlsticksandwich ( array $open , array $high , array $low , 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 trader_cdltakuri ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdltasukigap

Tasuki Gap

说明

array trader_cdltasukigap ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlthrusting

Thrusting Pattern

说明

array trader_cdlthrusting ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdltristar

Tristar Pattern

说明

array trader_cdltristar ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlunique3river

Unique 3 River

说明

array trader_cdlunique3river ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlupsidegap2crows

Upside Gap Two Crows

说明

array trader_cdlupsidegap2crows ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_cdlxsidegap3methods

Upside/Downside Gap Three Methods

说明

array trader_cdlxsidegap3methods ( array $open , array $high , array $low , array $close )

参数

open
开盘价,浮点数数组。

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ceil

Vector Ceil

说明

array trader_ceil ( 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 trader_cmo ( 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_correl

Pearson's Correlation Coefficient (r)

说明

array trader_correl ( array $real0 , 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_cos

Vector Trigonometric Cos

说明

array trader_cos ( 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 trader_cosh ( 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 trader_dema ( 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_div

Vector Arithmetic Div

说明

array trader_div ( array $real0 , 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 trader_dx ( array $high , array $low , array $close [, 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 trader_ema ( 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_errno

Get error code

说明

int trader_errno ( void )

Get error code of the last operation.

返回值

Returns the error code identified by one of the TRADER_ERR_* constants.

trader_exp

Vector Arithmetic Exp

说明

array trader_exp ( 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 trader_floor ( 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 trader_get_compat ( 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 TRADER_COMPATIBILITY_* series of constants.

trader_get_unstable_period

Get unstable period

说明

int trader_get_unstable_period ( int $functionId )

Get unstable period factor for a particular function.

参数

functionId
Function ID the factor to be read for. TRADER_FUNC_UNST_* series of constants should be used.

返回值

Returns the unstable period factor for the corresponding function.

trader_ht_dcperiod

Hilbert Transform - Dominant Cycle Period

说明

array trader_ht_dcperiod ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ht_dcphase

Hilbert Transform - Dominant Cycle Phase

说明

array trader_ht_dcphase ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ht_phasor

Hilbert Transform - Phasor Components

说明

array trader_ht_phasor ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ht_sine

Hilbert Transform - SineWave

说明

array trader_ht_sine ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ht_trendline

Hilbert Transform - Instantaneous Trendline

说明

array trader_ht_trendline ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ht_trendmode

Hilbert Transform - Trend vs Cycle Mode

说明

array trader_ht_trendmode ( array $real )

参数

real
浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_kama

Kaufman Adaptive Moving Average

说明

array trader_kama ( 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_angle

Linear Regression Angle

说明

array trader_linearreg_angle ( 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 trader_linearreg_intercept ( 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 trader_linearreg_slope ( 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 trader_linearreg ( 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 trader_ln ( 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 trader_log10 ( 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 trader_ma ( array $real [, int $timePeriod [, int $mAType ]] )

参数

real
浮点数数组。

timePeriod
Number of period. Valid range from 2 to 100000.

mAType
Type of Moving Average. TRADER_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_macd

Moving Average Convergence/Divergence

说明

array trader_macd ( array $real [, int $fastPeriod [, int $slowPeriod [, 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 trader_macdext ( array $real [, int $fastPeriod [, int $fastMAType [, int $slowPeriod [, int $slowMAType [, int $signalPeriod [, 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_MA_TYPE_* 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_MA_TYPE_* 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_MA_TYPE_* 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 trader_macdfix ( 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 trader_mama ( array $real [, 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 trader_mavp ( array $real , array $periods [, int $minPeriod [, int $maxPeriod [, 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_MA_TYPE_* 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 trader_max ( 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_maxindex

Index of highest value over a specified period

说明

array trader_maxindex ( 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 trader_medprice ( array $high , array $low )

参数

high
高价,浮点数数组。

low
低价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_mfi

Money Flow Index

说明

array trader_mfi ( array $high , array $low , array $close , array $volume [, 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 trader_midpoint ( 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 trader_midprice ( 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 trader_min ( 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_minindex

Index of lowest value over a specified period

说明

array trader_minindex ( 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 trader_minmax ( 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 trader_minmaxindex ( 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 trader_minus_di ( array $high , array $low , array $close [, 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 trader_minus_dm ( 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 trader_mom ( 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_mult

Vector Arithmetic Mult

说明

array trader_mult ( array $real0 , 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 trader_natr ( array $high , array $low , array $close [, 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 trader_obv ( array $real , array $volume )

参数

real
浮点数数组。

volume
成交量,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_plus_di

Plus Directional Indicator

说明

array trader_plus_di ( array $high , array $low , array $close [, 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 trader_plus_dm ( 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 trader_ppo ( array $real [, int $fastPeriod [, int $slowPeriod [, 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_MA_TYPE_* 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 trader_roc ( 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_rocp

Rate of change Percentage: (price-prevPrice)/prevPrice

说明

array trader_rocp ( 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_rocr100

Rate of change ratio 100 scale: (price/prevPrice)*100

说明

array trader_rocr100 ( 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 trader_rocr ( 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_rsi

Relative Strength Index

说明

array trader_rsi ( 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_sar

Parabolic SAR

说明

array trader_sar ( array $high , array $low [, float $acceleration [, 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 trader_sarext ( array $high , array $low [, float $startValue [, float $offsetOnReverse [, float $accelerationInitLong [, float $accelerationLong [, float $accelerationMaxLong [, float $accelerationInitShort [, float $accelerationShort [, 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 trader_set_compat ( int $compatId )

Set compatibility mode which will affect the way calculations are done by all the extension functions.

参数

compatId
Compatibility Id. TRADER_COMPATIBILITY_* series of constants should be used.

返回值

没有返回值。

trader_set_unstable_period

Set unstable period

说明

void trader_set_unstable_period ( 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_FUNC_UNST_* constant series can be used to affect the corresponding function.

timePeriod
Unstable period value.

返回值

没有返回值。

trader_sin

Vector Trigonometric Sin

说明

array trader_sin ( 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 trader_sinh ( 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 trader_sma ( 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_sqrt

Vector Square Root

说明

array trader_sqrt ( 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 trader_stddev ( array $real [, 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_stoch

Stochastic

说明

array trader_stoch ( array $high , array $low , array $close [, int $fastK_Period [, int $slowK_Period [, int $slowK_MAType [, int $slowD_Period [, 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_MA_TYPE_* 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_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_stochf

Stochastic Fast

说明

array trader_stochf ( array $high , array $low , array $close [, int $fastK_Period [, 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_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_stochrsi

Stochastic Relative Strength Index

说明

array trader_stochrsi ( array $real [, int $timePeriod [, int $fastK_Period [, 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_MA_TYPE_* series of constants should be used.

返回值

Returns an array with calculated data or false on failure.

trader_sub

Vector Arithmetic Subtraction

说明

array trader_sub ( array $real0 , 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 trader_sum ( 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_t3

Triple Exponential Moving Average (T3)

说明

array trader_t3 ( array $real [, 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 trader_tan ( 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 trader_tanh ( 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 trader_tema ( 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_trange

True Range

说明

array trader_trange ( 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 trader_trima ( 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 trader_trix ( 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_tsf

Time Series Forecast

说明

array trader_tsf ( 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_typprice

Typical Price

说明

array trader_typprice ( array $high , array $low , array $close )

参数

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_ultosc

Ultimate Oscillator

说明

array trader_ultosc ( array $high , array $low , array $close [, int $timePeriod1 [, 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 trader_var ( array $real [, 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 trader_wclprice ( array $high , array $low , array $close )

参数

high
高价,浮点数数组。

low
低价,浮点数数组。

close
收盘价,浮点数数组。

返回值

Returns an array with calculated data or false on failure.

trader_willr

Williams' %R

说明

array trader_willr ( array $high , array $low , array $close [, 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 trader_wma ( 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.

目录