Sumber dimuat naik... memuat...

Talib

talib.CDL2CROWS


```talib.CDL2CROWS()```函数的返回值为:一维数组。
array

talib.CDL2CROWS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL2CROWS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL2CROWS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL2CROWS(records);
    Log(ret);
}
对于```Python```语言中的调用来说,传参有所不同,需要根据以上描述中的:```Records[Open,High,Low,Close]```传参。

举例把一个变量```records```(即参数```inPriceOHLC```,类型为{@struct/Record Record}结构数组)拆分成:
```Open```列表:在Python中写为```records.Open```。
```High```列表:在Python中写为```records.High```。
```Low```列表:在Python中写为```records.Low```。
```Close```列表:在Python中写为```records.Close```。

Python策略代码中调用:

talib.CDL2CROWS ((rekod.Buka, rekod.Tinggi, rekod.Rendah, rekod.Tutup)


其它```talib```指标以此类推,不再赘述。


### talib.CDL3BLACKCROWS

```talib.CDL3BLACKCROWS()```函数用于计算**Three Black Crows (K线图--3只黑乌鸦)**。

```talib.CDL3BLACKCROWS()```函数的返回值为:一维数组。
array

talib.CDL3BLACKCROWS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3BLACKCROWS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3BLACKCROWS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3BLACKCROWS(records);
    Log(ret);
}

### talib.CDL3INSIDE

```talib.CDL3INSIDE()```函数用于计算**Three Inside Up/Down (K线图:3内上下震荡)**。

```talib.CDL3INSIDE()```函数的返回值为:一维数组。
array

talib.CDL3INSIDE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3INSIDE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3INSIDE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3INSIDE(records);
    Log(ret);
}

### talib.CDL3LINESTRIKE

```talib.CDL3LINESTRIKE()```函数用于计算**Three-Line Strike (K线图:3线震荡)**。

```talib.CDL3LINESTRIKE()```函数的返回值为:一维数组。
array

talib.CDL3LINESTRIKE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3LINESTRIKE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3LINESTRIKE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3LINESTRIKE(records);
    Log(ret);
}

### talib.CDL3OUTSIDE

```talib.CDL3OUTSIDE()```函数用于计算**Three Outside Up/Down (K线图:3外下震荡)**。

```talib.CDL3OUTSIDE()```函数的返回值为:一维数组。
array

talib.CDL3OUTSIDE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3OUTSIDE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3OUTSIDE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3OUTSIDE(records);
    Log(ret);
}

### talib.CDL3STARSINSOUTH

```talib.CDL3STARSINSOUTH()```函数用于计算**Three Stars In The South (K线图:南方三星)**。

```talib.CDL3STARSINSOUTH()```函数的返回值为:一维数组。
array

talib.CDL3STARSINSOUTH(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3STARSINSOUTH(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3STARSINSOUTH(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3STARSINSOUTH(records);
    Log(ret);
}

### talib.CDL3WHITESOLDIERS

```talib.CDL3WHITESOLDIERS()```函数用于计算**Three Advancing White Soldiers (K线图:三白兵)**。

```talib.CDL3WHITESOLDIERS()```函数的返回值为:一维数组。
array

talib.CDL3WHITESOLDIERS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDL3WHITESOLDIERS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDL3WHITESOLDIERS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDL3WHITESOLDIERS(records);
    Log(ret);
}

### talib.CDLABANDONEDBABY

```talib.CDLABANDONEDBABY()```函数用于计算**Abandoned Baby (K线图:弃婴)**。

```talib.CDLABANDONEDBABY()```函数的返回值为:一维数组。
array

talib.CDLABANDONEDBABY(inPriceOHLC)
talib.CDLABANDONEDBABY(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数用于设置Penetration,默认值为0.3。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLABANDONEDBABY(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLABANDONEDBABY(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLABANDONEDBABY(records);
    Log(ret);
}

### talib.CDLADVANCEBLOCK

```talib.CDLADVANCEBLOCK()```函数用于计算**Advance Block (K线图:推进)**。

```talib.CDLADVANCEBLOCK()```函数的返回值为:一维数组。
array

talib.CDLADVANCEBLOCK(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLADVANCEBLOCK(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLADVANCEBLOCK(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLADVANCEBLOCK(records);
    Log(ret);
}

### talib.CDLBELTHOLD

```talib.CDLBELTHOLD()```函数用于计算**Belt-hold (K线图:带住)**。

```talib.CDLBELTHOLD()```函数的返回值为:一维数组。
array

talib.CDLBELTHOLD(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLBELTHOLD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLBELTHOLD(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLBELTHOLD(records);
    Log(ret);
}

### talib.CDLBREAKAWAY

```talib.CDLBREAKAWAY()```函数用于计算**Breakaway (K线图:分离)**。

```talib.CDLBREAKAWAY()```函数的返回值为:一维数组。
array

talib.CDLBREAKAWAY(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLBREAKAWAY(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLBREAKAWAY(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLBREAKAWAY(records);
    Log(ret);
}

### talib.CDLCLOSINGMARUBOZU

```talib.CDLCLOSINGMARUBOZU()```函数用于计算**Closing Marubozu (K线图:收盘光头光脚)**。

```talib.CDLCLOSINGMARUBOZU()```函数的返回值为:一维数组。
array

talib.CDLCLOSINGMARUBOZU(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLCLOSINGMARUBOZU(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLCLOSINGMARUBOZU(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLCLOSINGMARUBOZU(records);
    Log(ret);
}

### talib.CDLCONCEALBABYSWALL

```talib.CDLCONCEALBABYSWALL()```函数用于计算**Concealing Baby Swallow (K线图:藏婴吞没形态)**。

```talib.CDLCONCEALBABYSWALL()```函数的返回值为:一维数组。
array

talib.CDLCONCEALBABYSWALL(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLCONCEALBABYSWALL(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLCONCEALBABYSWALL(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLCONCEALBABYSWALL(records);
    Log(ret);
}

### talib.CDLCOUNTERATTACK

```talib.CDLCOUNTERATTACK()```函数用于计算**Counterattack (K线图:反击)**。

```talib.CDLCOUNTERATTACK()```函数的返回值为:一维数组。
array

talib.CDLCOUNTERATTACK(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLCOUNTERATTACK(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLCOUNTERATTACK(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLCOUNTERATTACK(records);
    Log(ret);
}

### talib.CDLDARKCLOUDCOVER

```talib.CDLDARKCLOUDCOVER()```函数用于计算**Dark Cloud Cover (K线图:乌云盖)**。

```talib.CDLDARKCLOUDCOVER()```函数的返回值为:一维数组。
array

talib.CDLDARKCLOUDCOVER(inPriceOHLC)
talib.CDLDARKCLOUDCOVER(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数用于设置Penetration,默认值为0.5。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLDARKCLOUDCOVER(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLDARKCLOUDCOVER(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLDARKCLOUDCOVER(records);
    Log(ret);
}

### talib.CDLDOJI

```talib.CDLDOJI()```函数用于计算**Doji (K线图:十字星 )**。

```talib.CDLDOJI()```函数的返回值为:一维数组。
array

talib.CDLDOJI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLDOJI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLDOJI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLDOJI(records);
    Log(ret);
}

### talib.CDLDOJISTAR

```talib.CDLDOJISTAR()```函数用于计算**Doji Star (K线图:十字星)**。

```talib.CDLDOJISTAR()```函数的返回值为:一维数组。
array

talib.CDLDOJISTAR(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLDOJISTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLDOJISTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLDOJISTAR(records);
    Log(ret);
}

### talib.CDLDRAGONFLYDOJI

```talib.CDLDRAGONFLYDOJI()```函数用于计算**Dragonfly Doji (K线图:蜻蜓十字星)**。

```talib.CDLDRAGONFLYDOJI()```函数的返回值为:一维数组。
array

talib.CDLDRAGONFLYDOJI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLDRAGONFLYDOJI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLDRAGONFLYDOJI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLDRAGONFLYDOJI(records);
    Log(ret);
}

### talib.CDLENGULFING

```talib.CDLENGULFING()```函数用于计算**Engulfing Pattern (K线图:吞没)**。

```talib.CDLENGULFING()```函数的返回值为:一维数组。
array

talib.CDLENGULFING(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLENGULFING(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLENGULFING(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLENGULFING(records);
    Log(ret);
}

### talib.CDLEVENINGDOJISTAR

```talib.CDLEVENINGDOJISTAR()```函数用于计算**Evening Doji Star (K线图:黄昏十字星)**。

```talib.CDLEVENINGDOJISTAR()```函数的返回值为:一维数组。
array

talib.CDLEVENINGDOJISTAR(inPriceOHLC)
talib.CDLEVENINGDOJISTAR(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数用于设置Penetration,默认值为0.3。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLEVENINGDOJISTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLEVENINGDOJISTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLEVENINGDOJISTAR(records);
    Log(ret);
}

### talib.CDLEVENINGSTAR

```talib.CDLEVENINGSTAR()```函数用于计算**Evening Star (K线图:黄昏之星)**。

```talib.CDLEVENINGSTAR()```函数的返回值为:一维数组。
array

talib.CDLEVENINGSTAR(inPriceOHLC)
talib.CDLEVENINGSTAR(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数用于设置Penetration,默认值为0.3。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLEVENINGSTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLEVENINGSTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLEVENINGSTAR(records);
    Log(ret);
}

### talib.CDLGAPSIDESIDEWHITE

```talib.CDLGAPSIDESIDEWHITE()```函数用于计算**Up/Down-gap side-by-side white lines (K线图:上/下间隙并排的白色线条)**。

```talib.CDLGAPSIDESIDEWHITE()```函数的返回值为:一维数组。
array

talib.CDLGAPSIDESIDEWHITE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLGAPSIDESIDEWHITE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLGAPSIDESIDEWHITE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLGAPSIDESIDEWHITE(records);
    Log(ret);
}

### talib.CDLGRAVESTONEDOJI

```talib.CDLGRAVESTONEDOJI()```函数用于计算**Gravestone Doji (K线图:墓碑十字线)**。

```talib.CDLGRAVESTONEDOJI()```函数的返回值为:一维数组。
array

talib.CDLGRAVESTONEDOJI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLGRAVESTONEDOJI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLGRAVESTONEDOJI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLGRAVESTONEDOJI(records);
    Log(ret);
}

### talib.CDLHAMMER

```talib.CDLHAMMER()```函数用于计算**Hammer (K线图:锤)**。

```talib.CDLHAMMER()```函数的返回值为:一维数组。
array

talib.CDLHAMMER(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHAMMER(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHAMMER(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHAMMER(records);
    Log(ret);
}

### talib.CDLHANGINGMAN

```talib.CDLHANGINGMAN()```函数用于计算**Hanging Man (K线图:吊人)**。

```talib.CDLHANGINGMAN()```函数的返回值为:一维数组。
array

talib.CDLHANGINGMAN(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHANGINGMAN(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHANGINGMAN(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHANGINGMAN(records);
    Log(ret);
}

### talib.CDLHARAMI

```talib.CDLHARAMI()```函数用于计算**Harami Pattern (K线图:阴阳线)**。

```talib.CDLHARAMI()```函数的返回值为:一维数组。
array

talib.CDLHARAMI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHARAMI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHARAMI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHARAMI(records);
    Log(ret);
}

### talib.CDLHARAMICROSS

```talib.CDLHARAMICROSS()```函数用于计算**Harami Cross Pattern (K线图:交叉阴阳线)**。

```talib.CDLHARAMICROSS()```函数的返回值为:一维数组。
array

talib.CDLHARAMICROSS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHARAMICROSS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHARAMICROSS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHARAMICROSS(records);
    Log(ret);
}

### talib.CDLHIGHWAVE

```talib.CDLHIGHWAVE()```函数用于计算**High-Wave Candle (K线图:长脚十字线 )**。

```talib.CDLHIGHWAVE()```函数的返回值为:一维数组。
array

talib.CDLHIGHWAVE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHIGHWAVE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHIGHWAVE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHIGHWAVE(records);
    Log(ret);
}

### talib.CDLHIKKAKE

```talib.CDLHIKKAKE()```函数用于计算**Hikkake Pattern (K线图:陷阱)**。

```talib.CDLHIKKAKE()```函数的返回值为:一维数组。
array

talib.CDLHIKKAKE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHIKKAKE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHIKKAKE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHIKKAKE(records);
    Log(ret);
}

### talib.CDLHIKKAKEMOD

```talib.CDLHIKKAKEMOD()```函数用于计算**Modified Hikkake Pattern (K线图:改良的陷阱)**。

```talib.CDLHIKKAKEMOD()```函数的返回值为:一维数组。
array

talib.CDLHIKKAKEMOD(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHIKKAKEMOD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHIKKAKEMOD(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHIKKAKEMOD(records);
    Log(ret);
}

### talib.CDLHOMINGPIGEON

```talib.CDLHOMINGPIGEON()```函数用于计算**Homing Pigeon (K线图:信鸽)**。

```talib.CDLHOMINGPIGEON()```函数的返回值为:一维数组。
array

talib.CDLHOMINGPIGEON(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLHOMINGPIGEON(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLHOMINGPIGEON(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLHOMINGPIGEON(records);
    Log(ret);
}

### talib.CDLIDENTICAL3CROWS

```talib.CDLIDENTICAL3CROWS()```函数用于计算**Identical Three Crows (K线图:相同的三只乌鸦)**。

```talib.CDLIDENTICAL3CROWS()```函数的返回值为:一维数组。
array

talib.CDLIDENTICAL3CROWS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLIDENTICAL3CROWS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLIDENTICAL3CROWS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLIDENTICAL3CROWS(records);
    Log(ret);
}

### talib.CDLINNECK

```talib.CDLINNECK()```函数用于计算**In-Neck Pattern (K线图:颈纹)**。

```talib.CDLINNECK()```函数的返回值为:一维数组。
array

talib.CDLINNECK(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLINNECK(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLINNECK(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLINNECK(records);
    Log(ret);
}

### talib.CDLINVERTEDHAMMER

```talib.CDLINVERTEDHAMMER()```函数用于计算**Inverted Hammer (K线图:倒锤)**。

```talib.CDLINVERTEDHAMMER()```函数的返回值为:一维数组。
array

talib.CDLINVERTEDHAMMER(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLINVERTEDHAMMER(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLINVERTEDHAMMER(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLINVERTEDHAMMER(records);
    Log(ret);
}

### talib.CDLKICKING

```talib.CDLKICKING()```函数用于计算**Kicking (K线图:踢)**。

```talib.CDLKICKING()```函数的返回值为:一维数组。
array

talib.CDLKICKING(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLKICKING(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLKICKING(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLKICKING(records);
    Log(ret);
}

### talib.CDLKICKINGBYLENGTH

```talib.CDLKICKINGBYLENGTH()```函数用于计算**Kicking - bull/bear determined by the longer marubozu (K线图:踢牛/踢熊)**。

```talib.CDLKICKINGBYLENGTH()```函数的返回值为:一维数组。
array

talib.CDLKICKINGBYLENGTH(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLKICKINGBYLENGTH(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLKICKINGBYLENGTH(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLKICKINGBYLENGTH(records);
    Log(ret);
}

### talib.CDLLADDERBOTTOM

```talib.CDLLADDERBOTTOM()```函数用于计算**Ladder Bottom (K线图:梯底)**。

```talib.CDLLADDERBOTTOM()```函数的返回值为:一维数组。
array

talib.CDLLADDERBOTTOM(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLLADDERBOTTOM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLLADDERBOTTOM(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLLADDERBOTTOM(records);
    Log(ret);
}

### talib.CDLLONGLEGGEDDOJI

```talib.CDLLONGLEGGEDDOJI()```函数用于计算**Long Legged Doji (K线图:长腿十字线)**。

```talib.CDLLONGLEGGEDDOJI()```函数的返回值为:一维数组。
array

talib.CDLLONGLEGGEDDOJI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLLONGLEGGEDDOJI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLLONGLEGGEDDOJI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLLONGLEGGEDDOJI(records);
    Log(ret);
}

### talib.CDLLONGLINE

```talib.CDLLONGLINE()```函数用于计算**Long Line Candle (K线图:长线)**。

```talib.CDLLONGLINE()```函数的返回值为:一维数组。
array

talib.CDLLONGLINE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLLONGLINE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLLONGLINE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLLONGLINE(records);
    Log(ret);
}

### talib.CDLMARUBOZU

```talib.CDLMARUBOZU()```函数用于计算**Marubozu (K线图:光头光脚)**。

```talib.CDLMARUBOZU()```函数的返回值为:一维数组。
array

talib.CDLMARUBOZU(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLMARUBOZU(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLMARUBOZU(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLMARUBOZU(records);
    Log(ret);
}

### talib.CDLMATCHINGLOW

```talib.CDLMATCHINGLOW()```函数用于计算**Matching Low (K线图:匹配低)**。

```talib.CDLMATCHINGLOW()```函数的返回值为:一维数组。
array

talib.CDLMATCHINGLOW(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLMATCHINGLOW(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLMATCHINGLOW(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLMATCHINGLOW(records);
    Log(ret);
}

### talib.CDLMATHOLD

```talib.CDLMATHOLD()```函数用于计算**Mat Hold (K线图:垫住)**。

```talib.CDLMATHOLD()```函数的返回值为:一维数组。
array

talib.CDLMATHOLD(inPriceOHLC)
talib.CDLMATHOLD(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数为可选参数,用于指定上升/下降趋势线的宽度占比,默认值为0.5。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLMATHOLD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLMATHOLD(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLMATHOLD(records);
    Log(ret);
}

### talib.CDLMORNINGDOJISTAR

```talib.CDLMORNINGDOJISTAR()```函数用于计算**Morning Doji Star (K线图:早晨十字星)**。

```talib.CDLMORNINGDOJISTAR()```函数的返回值为:一维数组。
array

talib.CDLMORNINGDOJISTAR(inPriceOHLC)
talib.CDLMORNINGDOJISTAR(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数用于指定验证开盘价和实体部分重合的程度,默认值为0.3。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLMORNINGDOJISTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLMORNINGDOJISTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLMORNINGDOJISTAR(records);
    Log(ret);
}

### talib.CDLMORNINGSTAR

```talib.CDLMORNINGSTAR()```函数用于计算**Morning Star (K线图:晨星)**。

```talib.CDLMORNINGSTAR()```函数的返回值为:一维数组。
array

talib.CDLMORNINGSTAR(inPriceOHLC)
talib.CDLMORNINGSTAR(inPriceOHLC, optInPenetration)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
```optInPenetration```参数为趋势确认所需价格浮动百分比阈值,取值范围[0,1],默认值为0.3。
optInPenetration
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLMORNINGSTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLMORNINGSTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLMORNINGSTAR(records);
    Log(ret);
}

### talib.CDLONNECK

```talib.CDLONNECK()```函数用于计算**On-Neck Pattern (K线图:颈型)**。

```talib.CDLONNECK()```函数的返回值为:一维数组。
array

talib.CDLONNECK(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLONNECK(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLONNECK(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLONNECK(records);
    Log(ret);
}

### talib.CDLPIERCING

```talib.CDLPIERCING()```函数用于计算**Piercing Pattern (K线图:穿孔模式)**。

```talib.CDLPIERCING()```函数的返回值为:一维数组。
array

talib.CDLPIERCING(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLPIERCING(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLPIERCING(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLPIERCING(records);
    Log(ret);
}

### talib.CDLRICKSHAWMAN

```talib.CDLRICKSHAWMAN()```函数用于计算**Rickshaw Man (K线图:车夫)**。

```talib.CDLRICKSHAWMAN()```函数的返回值为:一维数组。
array

talib.CDLRICKSHAWMAN(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLRICKSHAWMAN(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLRICKSHAWMAN(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLRICKSHAWMAN(records);
    Log(ret);
}

### talib.CDLRISEFALL3METHODS

```talib.CDLRISEFALL3METHODS()```函数用于计算**Rising/Falling Three Methods (K线图:上升/下降三法)**。

```talib.CDLRISEFALL3METHODS()```函数的返回值为:一维数组。
array

talib.CDLRISEFALL3METHODS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLRISEFALL3METHODS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLRISEFALL3METHODS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLRISEFALL3METHODS(records);
    Log(ret);
}

### talib.CDLSEPARATINGLINES

```talib.CDLSEPARATINGLINES()```函数用于计算**Separating Lines (K线图:分割线)**。

```talib.CDLSEPARATINGLINES()```函数的返回值为:一维数组。
array

talib.CDLSEPARATINGLINES(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSEPARATINGLINES(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSEPARATINGLINES(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSEPARATINGLINES(records);
    Log(ret);
}

### talib.CDLSHOOTINGSTAR

```talib.CDLSHOOTINGSTAR()```函数用于计算**Shooting Star (K线图:流星)**。

```talib.CDLSHOOTINGSTAR()```函数的返回值为:一维数组。
array

talib.CDLSHOOTINGSTAR(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSHOOTINGSTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSHOOTINGSTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSHOOTINGSTAR(records);
    Log(ret);
}

### talib.CDLSHORTLINE

```talib.CDLSHORTLINE()```函数用于计算**Short Line Candle (K线图:短线)**。

```talib.CDLSHORTLINE()```函数的返回值为:一维数组。
array

talib.CDLSHORTLINE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSHORTLINE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSHORTLINE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSHORTLINE(records);
    Log(ret);
}

### talib.CDLSPINNINGTOP

```talib.CDLSPINNINGTOP()```函数用于计算**Spinning Top (K线图:陀螺)**。

```talib.CDLSPINNINGTOP()```函数的返回值为:一维数组。
array

talib.CDLSPINNINGTOP(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSPINNINGTOP(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSPINNINGTOP(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSPINNINGTOP(records);
    Log(ret);
}

### talib.CDLSTALLEDPATTERN

```talib.CDLSTALLEDPATTERN()```函数用于计算**Stalled Pattern (K线图:停滞模式)**。

```talib.CDLSTALLEDPATTERN()```函数的返回值为:一维数组。
array

talib.CDLSTALLEDPATTERN(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSTALLEDPATTERN(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSTALLEDPATTERN(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSTALLEDPATTERN(records);
    Log(ret);
}

### talib.CDLSTICKSANDWICH

```talib.CDLSTICKSANDWICH()```函数用于计算**Stick Sandwich (K线图:棍子三明治)**。

```talib.CDLSTICKSANDWICH()```函数的返回值为:一维数组。
array

talib.CDLSTICKSANDWICH(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLSTICKSANDWICH(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLSTICKSANDWICH(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLSTICKSANDWICH(records);
    Log(ret);
}

### talib.CDLTAKURI

```talib.CDLTAKURI()```函数用于计算**Takuri (Dragonfly Doji with very long lower shadow) (K线图:托里)**。

```talib.CDLTAKURI()```函数的返回值为:一维数组。
array

talib.CDLTAKURI(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLTAKURI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLTAKURI(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLTAKURI(records);
    Log(ret);
}

### talib.CDLTASUKIGAP

```talib.CDLTASUKIGAP()```函数用于计算**Tasuki Gap (K线图:翼隙)**。

```talib.CDLTASUKIGAP()```函数的返回值为:一维数组。
array

talib.CDLTASUKIGAP(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLTASUKIGAP(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLTASUKIGAP(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLTASUKIGAP(records);
    Log(ret);
}

### talib.CDLTHRUSTING

```talib.CDLTHRUSTING()```函数用于计算**Thrusting Pattern (K线图:推模式)**。

```talib.CDLTHRUSTING()```函数的返回值为:一维数组。
array

talib.CDLTHRUSTING(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLTHRUSTING(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLTHRUSTING(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLTHRUSTING(records);
    Log(ret);
}

### talib.CDLTRISTAR

```talib.CDLTRISTAR()```函数用于计算**Tristar Pattern (K线图:三星模式)**。

```talib.CDLTRISTAR()```函数的返回值为:一维数组。
array

talib.CDLTRISTAR(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLTRISTAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLTRISTAR(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLTRISTAR(records);
    Log(ret);
}

### talib.CDLUNIQUE3RIVER

```talib.CDLUNIQUE3RIVER()```函数用于计算**Unique 3 River (K线图:独特的3河)**。

```talib.CDLUNIQUE3RIVER()```函数的返回值为:一维数组。
array

talib.CDLUNIQUE3RIVER(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLUNIQUE3RIVER(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLUNIQUE3RIVER(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLUNIQUE3RIVER(records);
    Log(ret);
}

### talib.CDLUPSIDEGAP2CROWS

```talib.CDLUPSIDEGAP2CROWS()```函数用于计算**Upside Gap Two Crows (K线图:双飞乌鸦)**。

```talib.CDLUPSIDEGAP2CROWS()```函数的返回值为:一维数组。
array

talib.CDLUPSIDEGAP2CROWS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLUPSIDEGAP2CROWS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLUPSIDEGAP2CROWS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLUPSIDEGAP2CROWS(records);
    Log(ret);
}

### talib.CDLXSIDEGAP3METHODS

```talib.CDLXSIDEGAP3METHODS()```函数用于计算**Upside/Downside Gap Three Methods (K线图:上行/下行缺口三方法)**。

```talib.CDLXSIDEGAP3METHODS()```函数的返回值为:一维数组。
array

talib.CDLXSIDEGAP3METHODS(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CDLXSIDEGAP3METHODS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CDLXSIDEGAP3METHODS(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CDLXSIDEGAP3METHODS(records);
    Log(ret);
}

### talib.AD

```talib.AD()```函数用于计算**Chaikin A/D Line (线随机指标)**。

```talib.AD()```函数的返回值为:一维数组。
array

talib.AD(inPriceHLCV)

```inPriceHLCV```参数用于指定K线数据。
inPriceHLCV
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.AD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AD(records.High, records.Low, records.Close, records.Volume)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AD(records);
    Log(ret);
}

### talib.ADOSC

```talib.ADOSC()```函数用于计算**Chaikin A/D Oscillator (佳庆指标)**。

```talib.ADOSC()```函数的返回值为:一维数组。
array

talib.ADOSC(inPriceHLCV)
talib.ADOSC(inPriceHLCV, optInFastPeriod, optInSlowPeriod)

```inPriceHLCV```参数用于指定K线数据。
inPriceHLCV
true
{@struct/Record Record}结构数组
```optInFastPeriod```参数用于设置快周期。
optInFastPeriod
false
number
```optInSlowPeriod```参数用于设置慢周期。
optInSlowPeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ADOSC(records, 3, 10)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ADOSC(records.High, records.Low, records.Close, records.Volume, 3, 10)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ADOSC(records, 3, 10);
    Log(ret);
}

### talib.OBV

```talib.OBV()```函数用于计算**On Balance Volume (能量潮)**。

```talib.OBV()```函数的返回值为:一维数组。
array

talib.OBV(inReal)
talib.OBV(inReal, inPriceV)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```inPriceV```参数用于指定K线数据。
inPriceV
false
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.OBV(records, records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.OBV(records.Close, records.Volume)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.OBV(records);
    Log(ret);
}

### talib.ACOS

```talib.ACOS()```函数用于计算**Vector Trigonometric ACos (反余弦函数)**。

```talib.ACOS()```函数的返回值为:一维数组。
array

talib.ACOS(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.ACOS(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.ACOS(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.ACOS(data);
    Log(ret);
}

### talib.ASIN

```talib.ASIN()```函数用于计算**Vector Trigonometric ASin (反正弦函数)**。

```talib.ASIN()```函数的返回值为:一维数组。
array

talib.ASIN(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.ASIN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.ASIN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.ASIN(data);
    Log(ret);
}

### talib.ATAN

```talib.ATAN()```函数用于计算**Vector Trigonometric ATan (反正切函数)**。

```talib.ATAN()```函数的返回值为:一维数组。
array

talib.ATAN(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-3.14/2, 0, 3.14/2]
    var ret = talib.ATAN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-3.14/2, 0, 3.14/2]
    ret = talib.ATAN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-3.14/2, 0, 3.14/2};
    auto ret = talib.ATAN(data);
    Log(ret);
}

### talib.CEIL

```talib.CEIL()```函数用于计算**Vector Ceil (取整函数)**。

```talib.CEIL()```函数的返回值为:一维数组。
array

talib.CEIL(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CEIL(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CEIL(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CEIL(records);
    Log(ret);
}

### talib.COS

```talib.COS()```函数用于计算**Vector Trigonometric Cos (余弦函数)**。

```talib.COS()```函数的返回值为:一维数组。
array

talib.COS(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-3.14, 0, 3.14]
    var ret = talib.COS(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-3.14, 0, 3.14]
    ret = talib.COS(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-3.14, 0, 3.14};
    auto ret = talib.COS(data);
    Log(ret);
}

### talib.COSH

```talib.COSH()```函数用于计算**Vector Trigonometric Cosh (双曲余弦值)**。

```talib.COSH()```函数的返回值为:一维数组。
array

talib.COSH(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.COSH(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.COSH(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.COSH(data);
    Log(ret);
}

### talib.EXP

```talib.EXP()```函数用于计算**Vector Arithmetic Exp (指数函数)**。

```talib.EXP()```函数的返回值为:一维数组。
array

talib.EXP(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [0, 1, 2]
    var ret = talib.EXP(data)    // e^0, e^1, e^2
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [0, 1.0, 2.0]
    ret = talib.EXP(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {0, 1.0, 2.0};
    auto ret = talib.EXP(data);
    Log(ret);
}

### talib.FLOOR

```talib.FLOOR()```函数用于计算**Vector Floor (向下取整)**。

```talib.FLOOR()```函数的返回值为:一维数组。
array

talib.FLOOR(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.FLOOR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.FLOOR(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.FLOOR(records);
    Log(ret);
}

### talib.LN

```talib.LN()```函数用于计算**Vector Log Natural (自然对数)**。

```talib.LN()```函数的返回值为:一维数组。
array

talib.LN(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [1, 2, 3]
    var ret = talib.LN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [1.0, 2.0, 3.0]
    ret = talib.LN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {1, 2, 3};
    auto ret = talib.LN(data);
    Log(ret);
}

### talib.LOG10

```talib.LOG10()```函数用于计算**Vector Log10 (对数函数)**。

```talib.LOG10()```函数的返回值为:一维数组。
array

talib.LOG10(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [10, 100, 1000]
    var ret = talib.LOG10(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [10.0, 100.0, 1000.0]
    ret = talib.LOG10(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {10, 100, 1000};
    auto ret = talib.LOG10(data);
    Log(ret);
}

### talib.SIN

```talib.SIN()```函数用于计算**Vector Trigonometric Sin (正弦值)**。

```talib.SIN()```函数的返回值为:一维数组。
array

talib.SIN(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-3.14/2, 0, 3.14/2]
    var ret = talib.SIN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-3.14/2, 0, 3.14/2]
    ret = talib.SIN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-3.14/2, 0, 3.14/2};
    auto ret = talib.SIN(data);
    Log(ret);
}

### talib.SINH

```talib.SINH()```函数用于计算**Vector Trigonometric Sinh (双曲正弦函数)**。

```talib.SINH()```函数的返回值为:一维数组。
array

talib.SINH(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.SINH(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.SINH(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.SINH(data);
    Log(ret);
}

### talib.SQRT

```talib.SQRT()```函数用于计算**Vector Square Root (平方根)**。

```talib.SQRT()```函数的返回值为:一维数组。
array

talib.SQRT(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [4, 64, 100]
    var ret = talib.SQRT(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [4.0, 64.0, 100.0]
    ret = talib.SQRT(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {4, 64, 100};
    auto ret = talib.SQRT(data);
    Log(ret);
}

### talib.TAN

```talib.TAN()```函数用于计算**Vector Trigonometric Tan (正切)**。

```talib.TAN()```函数的返回值为:一维数组。
array

talib.TAN(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.TAN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.TAN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.TAN(data);
    Log(ret);
}

### talib.TANH

```talib.TANH()```函数用于计算**Vector Trigonometric Tanh (双曲正切函数)**。

```talib.TANH()```函数的返回值为:一维数组。
array

talib.TANH(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var data = [-1, 0, 1]
    var ret = talib.TANH(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.TANH(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.TANH(data);
    Log(ret);
}

### talib.MAX

```talib.MAX()```函数用于计算**Highest value over a specified period (最大值)**。

```talib.MAX()```函数的返回值为:一维数组。
array

talib.MAX(inReal)
talib.MAX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MAX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MAX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MAX(records);
    Log(ret);
}

### talib.MAXINDEX

```talib.MAXINDEX()```函数用于计算**Index of highest value over a specified period (最大值索引)**。

```talib.MAXINDEX()```函数的返回值为:一维数组。
array

talib.MAXINDEX(inReal)
talib.MAXINDEX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MAXINDEX(records, 5)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MAXINDEX(records.Close, 5)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MAXINDEX(records, 5);
    Log(ret);
}

### talib.MIN

```talib.MIN()```函数用于计算**Lowest value over a specified period (最小值)**。

```talib.MIN()```函数的返回值为:一维数组。
array

talib.MIN(inReal)
talib.MIN(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MIN(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MIN(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MIN(records);
    Log(ret);
}

### talib.MININDEX

```talib.MININDEX()```函数用于计算**Index of lowest value over a specified period (最小值索引)**。

```talib.MININDEX()```函数的返回值为:一维数组。
array

talib.MININDEX(inReal)
talib.MININDEX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MININDEX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MININDEX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MININDEX(records);
    Log(ret);
}

### talib.MINMAX

```talib.MINMAX()```函数用于计算**Lowest and highest values over a specified period (最小最大值)**。

```talib.MINMAX()```函数的返回值为:二维数组。该二维数组的第一个元素为最小值数组,第二个元素为最大值数组。
array

talib.MINMAX(inReal)
talib.MINMAX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MINMAX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MINMAX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MINMAX(records);
    Log(ret);
}

### talib.MINMAXINDEX

```talib.MINMAXINDEX()```函数用于计算**Indexes of lowest and highest values over a specified period (最小最大值索引)**。

```talib.MINMAXINDEX()```函数的返回值为:二维数组。该二维数组的第一个元素为最小值索引数组,第二个元素为最大值索引数组。
array

talib.MINMAXINDEX(inReal)
talib.MINMAXINDEX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MINMAXINDEX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MINMAXINDEX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MINMAXINDEX(records);
    Log(ret);
}

### talib.SUM

```talib.SUM()```函数用于计算**Summation (求和)**。

```talib.SUM()```函数的返回值为:一维数组。
array

talib.SUM(inReal)
talib.SUM(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.SUM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.SUM(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.SUM(records);
    Log(ret);
}

### talib.HT_DCPERIOD

```talib.HT_DCPERIOD()```函数用于计算**Hilbert Transform - Dominant Cycle Period (希尔伯特变换, 主周期)**。

```talib.HT_DCPERIOD()```函数的返回值为:一维数组。
array

talib.HT_DCPERIOD(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_DCPERIOD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_DCPERIOD(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_DCPERIOD(records);
    Log(ret);
}

### talib.HT_DCPHASE

```talib.HT_DCPHASE()```函数用于计算**Hilbert Transform - Dominant Cycle Phase (希尔伯特变换,主阶段)**。

```talib.HT_DCPHASE()```函数的返回值为:一维数组。
array

talib.HT_DCPHASE(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_DCPHASE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_DCPHASE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_DCPHASE(records);
    Log(ret);
}

### talib.HT_PHASOR

```talib.HT_PHASOR()```函数用于计算**Hilbert Transform - Phasor Components (希尔伯特变换,相成分)**。

```talib.HT_PHASOR()```函数的返回值为:二维数组。
array

talib.HT_PHASOR(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_PHASOR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_PHASOR(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_PHASOR(records);
    Log(ret);
}

### talib.HT_SINE

```talib.HT_SINE()```函数用于计算**Hilbert Transform - SineWave (希尔伯特变换,正弦波)**。

```talib.HT_SINE()```函数的返回值为:二维数组。
array

talib.HT_SINE(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_SINE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_SINE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_SINE(records);
    Log(ret);
}

### talib.HT_TRENDMODE

```talib.HT_TRENDMODE()```函数用于计算**Hilbert Transform - Trend vs Cycle Mode (希尔伯特变换-趋势与周期模式)**。

```talib.HT_TRENDMODE()```函数的返回值为:一维数组。
array

talib.HT_TRENDMODE(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_TRENDMODE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_TRENDMODE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_TRENDMODE(records);
    Log(ret);
}

### talib.ATR

```talib.ATR()```函数用于计算**Average True Range (平均真实波幅)**。

```talib.ATR()```函数的返回值为:一维数组。
array

talib.ATR(inPriceHLC)
talib.ATR(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ATR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ATR(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ATR(records);
    Log(ret);
}

### talib.NATR

```talib.NATR()```函数用于计算**Normalized Average True Range (归一化平均值范围)**。

```talib.NATR()```函数的返回值为:一维数组。
array

talib.NATR(inPriceHLC)
talib.NATR(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.NATR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.NATR(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.NATR(records);
    Log(ret);
}

### talib.TRANGE

```talib.TRANGE()```函数用于计算**True Range (真实范围)**。

```talib.TRANGE()```函数的返回值为:一维数组。
array

talib.TRANGE(inPriceHLC)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TRANGE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TRANGE(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TRANGE(records);
    Log(ret);
}

### talib.BBANDS

```talib.BBANDS()```函数用于计算**Bollinger Bands (布林带)**。

```talib.BBANDS()```函数的返回值为:二维数组。该数组包含三个元素分别是:上线数组、中线数组、下线数组。
array

talib.BBANDS(inReal)
talib.BBANDS(inReal, optInTimePeriod)
talib.BBANDS(inReal, optInTimePeriod, optInNbDevUp)
talib.BBANDS(inReal, optInTimePeriod, optInNbDevUp, optInNbDevDn)
talib.BBANDS(inReal, optInTimePeriod, optInNbDevUp, optInNbDevDn, optInMAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为5。
optInTimePeriod
false
number
```optInNbDevUp```参数用于设置上线乘数,默认值为2。
optInNbDevUp
false
number
```optInNbDevDn```参数用于设置下线乘数,默认值为2。
optInNbDevDn
false
number
```optInMAType```参数用于设置均线类型,默认值为0。
optInMAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.BBANDS(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.BBANDS(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.BBANDS(records);
    Log(ret);
}

### talib.DEMA

```talib.DEMA()```函数用于计算**Double Exponential Moving Average (双指数移动平均线)**。

```talib.DEMA()```函数的返回值为:一维数组。
array

talib.DEMA(inReal)
talib.DEMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.DEMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.DEMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.DEMA(records);
    Log(ret);
}

### talib.EMA

```talib.EMA()```函数用于计算**Exponential Moving Average (指数移动平均线)**。

```talib.EMA()```函数的返回值为:一维数组。
array

talib.EMA(inReal)
talib.EMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.EMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.EMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.EMA(records);
    Log(ret);
}

### talib.HT_TRENDLINE

```talib.HT_TRENDLINE()```函数用于计算**Hilbert Transform - Instantaneous Trendline (希尔伯特变换,瞬时趋势)**。

```talib.HT_TRENDLINE()```函数的返回值为:一维数组。
array

talib.HT_TRENDLINE(inReal)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_TRENDLINE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_TRENDLINE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_TRENDLINE(records);
    Log(ret);
}

### talib.KAMA

```talib.KAMA()```函数用于计算**Kaufman Adaptive Moving Average (适应性移动平均线)**。

```talib.KAMA()```函数的返回值为:一维数组。
array

talib.KAMA(inReal)
talib.KAMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.KAMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.KAMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.KAMA(records);
    Log(ret);
}

### talib.MA

```talib.MA()```函数用于计算**Moving average (移动平均线)**。

```talib.MA()```函数的返回值为:一维数组。
array

talib.MA(inReal)
talib.MA(inReal, optInTimePeriod)
talib.MA(inReal, optInTimePeriod, optInMAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number
```optInMAType```参数用于设置均线类型,默认值为0。
optInMAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MA(records);
    Log(ret);
}

### talib.MAMA

```talib.MAMA()```函数用于计算**MESA Adaptive Moving Average (MESA 移动平均线)**。

```talib.MAMA()```函数的返回值为:二维数组。
array

talib.MAMA(inReal)
talib.MAMA(inReal, optInFastLimit)
talib.MAMA(inReal, optInFastLimit, optInSlowLimit)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInFastLimit```参数用于设置Fast Limit,默认值为0.5。
optInFastLimit
false
number
```optInSlowLimit```参数用于设置Slow Limit,默认值为0.05。
optInSlowLimit
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MAMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MAMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MAMA(records);
    Log(ret);
}

### talib.MIDPOINT

```talib.MIDPOINT()```函数用于计算**MidPoint over period (中点)**。

```talib.MIDPOINT()```函数的返回值为:一维数组。
array

talib.MIDPOINT(inReal)
talib.MIDPOINT(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MIDPOINT(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MIDPOINT(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MIDPOINT(records);
    Log(ret);
}

### talib.MIDPRICE

```talib.MIDPRICE()```函数用于计算**Midpoint Price over period (中点价格)**。

```talib.MIDPRICE()```函数的返回值为:一维数组。
array

talib.MIDPRICE(inPriceHL)
talib.MIDPRICE(inPriceHL, optInTimePeriod)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MIDPRICE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MIDPRICE(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MIDPRICE(records);
    Log(ret);
}

### talib.SAR

```talib.SAR()```函数用于计算**Parabolic SAR (抛物线转向)**。

```talib.SAR()```函数的返回值为:一维数组。
array

talib.SAR(inPriceHL)
talib.SAR(inPriceHL, optInAcceleration)
talib.SAR(inPriceHL, optInAcceleration, optInMaximum)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInAcceleration```参数用于设置Acceleration Factor,默认值为0.02。
optInAcceleration
false
number
```optInMaximum```参数用于设置AF Maximum,默认值为0.2。
optInMaximum
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.SAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.SAR(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.SAR(records);
    Log(ret);
}

### talib.SAREXT

```talib.SAREXT()```函数用于计算**Parabolic SAR - Extended (增强型抛物线转向)**。

```talib.SAREXT()```函数的返回值为:一维数组。
array

talib.SAREXT(inPriceHL)
talib.SAREXT(inPriceHL, optInStartValue)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort, optInAccelerationShort)
talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort, optInAccelerationShort, optInAccelerationMaxShort)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInStartValue```参数用于设置Start Value,默认值为0。
optInStartValue
false
number
```optInOffsetOnReverse```参数用于设置Offset on Reverse,默认值为0。
optInOffsetOnReverse
false
number
```optInAccelerationInitLong```参数用于设置AF Init Long,默认值为0.02。
optInAccelerationInitLong
false
number
```optInAccelerationLong```参数用于设置AF Long,默认值为0.02。
optInAccelerationLong
false
number
```optInAccelerationMaxLong```参数用于设置AF Max Long,默认值为0.2。
optInAccelerationMaxLong
false
number
```optInAccelerationInitShort```参数用于设置AF Init Short,默认值为0.02。
optInAccelerationInitShort
false
number
```optInAccelerationShort```参数用于设置AF Short,默认值为0.02。
optInAccelerationShort
false
number
```optInAccelerationMaxShort```参数用于设置AF Max Short,默认值为0.2。
optInAccelerationMaxShort
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.SAREXT(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.SAREXT(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.SAREXT(records);
    Log(ret);
}

### talib.SMA

```talib.SMA()```函数用于计算**Simple Moving Average (简单移动平均)**。

```talib.SMA()```函数的返回值为:一维数组。
array

talib.SMA(inReal)
talib.SMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.SMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.SMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.SMA(records);
    Log(ret);
}

### talib.T3

```talib.T3()```函数用于计算**Triple Exponential Moving Average (T3) (三指数移动平均)**。

```talib.T3()```函数的返回值为:一维数组。
array

talib.T3(inReal)
talib.T3(inReal, optInTimePeriod)
talib.T3(inReal, optInTimePeriod, optInVFactor)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为5。
optInTimePeriod
false
number
```optInVFactor```参数用于设置Volume Factor,默认值为0.7。
optInVFactor
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.T3(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.T3(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.T3(records);
    Log(ret);
}

### talib.TEMA

```talib.TEMA()```函数用于计算**Triple Exponential Moving Average (三指数移动平均)**。

```talib.TEMA()```函数的返回值为:一维数组。
array

talib.TEMA(inReal)
talib.TEMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TEMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TEMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TEMA(records);
    Log(ret);
}

### talib.TRIMA

```talib.TRIMA()```函数用于计算**Triangular Moving Average (三指数移动平均)**。

```talib.TRIMA()```函数的返回值为:一维数组。
array

talib.TRIMA(inReal)
talib.TRIMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TRIMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TRIMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TRIMA(records);
    Log(ret);
}

### talib.WMA

```talib.WMA()```函数用于计算**Weighted Moving Average (加权移动平均)**。

```talib.WMA()```函数的返回值为:一维数组。
array

talib.WMA(inReal)
talib.WMA(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.WMA(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.WMA(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.WMA(records);
    Log(ret);
}

### talib.LINEARREG

```talib.LINEARREG()```函数用于计算**Linear Regression (线性回归)**。

```talib.LINEARREG()```函数的返回值为:一维数组。
array

talib.LINEARREG(inReal)
talib.LINEARREG(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.LINEARREG(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.LINEARREG(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.LINEARREG(records);
    Log(ret);
}

### talib.LINEARREG_ANGLE

```talib.LINEARREG_ANGLE()```函数用于计算**Linear Regression Angle (线性回归的角度)**。

```talib.LINEARREG_ANGLE()```函数的返回值为:一维数组。
array

talib.LINEARREG_ANGLE(inReal)
talib.LINEARREG_ANGLE(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.LINEARREG_ANGLE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.LINEARREG_ANGLE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.LINEARREG_ANGLE(records);
    Log(ret);
}

### talib.LINEARREG_INTERCEPT

```talib.LINEARREG_INTERCEPT()```函数用于计算**Linear Regression Intercept (线性回归截距)**。

```talib.LINEARREG_INTERCEPT()```函数的返回值为:一维数组。
array

talib.LINEARREG_INTERCEPT(inReal)
talib.LINEARREG_INTERCEPT(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.LINEARREG_INTERCEPT(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.LINEARREG_INTERCEPT(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.LINEARREG_INTERCEPT(records);
    Log(ret);
}

### talib.LINEARREG_SLOPE

```talib.LINEARREG_SLOPE()```函数用于计算**Linear Regression Slope (线性回归斜率)**。

```talib.LINEARREG_SLOPE()```函数的返回值为:一维数组。
array

talib.LINEARREG_SLOPE(inReal)
talib.LINEARREG_SLOPE(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.LINEARREG_SLOPE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.LINEARREG_SLOPE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.LINEARREG_SLOPE(records);
    Log(ret);
}

### talib.STDDEV

```talib.STDDEV()```函数用于计算**Standard Deviation (标准偏差)**。

```talib.STDDEV()```函数的返回值为:一维数组。
array

talib.STDDEV(inReal)
talib.STDDEV(inReal, optInTimePeriod)
talib.STDDEV(inReal, optInTimePeriod, optInNbDev)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为5。
optInTimePeriod
false
number
```optInNbDev```参数用于设置Deviations,默认值为1。
optInNbDev
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.STDDEV(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.STDDEV(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.STDDEV(records);
    Log(ret);
}

### talib.TSF

```talib.TSF()```函数用于计算**Time Series Forecast (时间序列预测)**。

```talib.TSF()```函数的返回值为:一维数组。
array

talib.TSF(inReal)
talib.TSF(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TSF(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TSF(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TSF(records);
    Log(ret);
}

### talib.VAR

```talib.VAR()```函数用于计算**Variance (方差)**。

```talib.VAR()```函数的返回值为:一维数组。
array

talib.VAR(inReal)
talib.VAR(inReal, optInTimePeriod)
talib.VAR(inReal, optInTimePeriod, optInNbDev)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为5。
optInTimePeriod
false
number
```optInNbDev```参数用于设置Deviations,默认值为1。
optInNbDev
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.VAR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.VAR(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.VAR(records);
    Log(ret);
}

### talib.ADX

```talib.ADX()```函数用于计算**Average Directional Movement Index (平均趋向指数)**。

```talib.ADX()```函数的返回值为:一维数组。
array

talib.ADX(inPriceHLC)
talib.ADX(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ADX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ADX(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ADX(records);
    Log(ret);
}

### talib.ADXR

```talib.ADXR()```函数用于计算**Average Directional Movement Index Rating (评估指数)**。

```talib.ADXR()```函数的返回值为:一维数组。
array

talib.ADXR(inPriceHLC)
talib.ADXR(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ADXR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ADXR(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ADXR(records);
    Log(ret);
}

### talib.APO

```talib.APO()```函数用于计算**Absolute Price Oscillator (绝对价格振荡指数)**。

```talib.APO()```函数的返回值为:一维数组。
array

talib.APO(inReal)
talib.APO(inReal, optInFastPeriod)
talib.APO(inReal, optInFastPeriod, optInSlowPeriod)
talib.APO(inReal, optInFastPeriod, optInSlowPeriod, optInMAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInFastPeriod```参数用于设置快周期,默认值为12。
optInFastPeriod
false
number
```optInSlowPeriod```参数用于设置慢周期,默认值为26。
optInSlowPeriod
false
number
```optInMAType```参数用于设置均线类型,默认值为0。
optInMAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.APO(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.APO(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.APO(records);
    Log(ret);
}

### talib.AROON

```talib.AROON()```函数用于计算**Aroon (阿隆指标)**。

```talib.AROON()```函数的返回值为:二维数组。
array

talib.AROON(inPriceHL)
talib.AROON(inPriceHL, optInTimePeriod)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.AROON(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AROON(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AROON(records);
    Log(ret);
}

### talib.AROONOSC

```talib.AROONOSC()```函数用于计算**Aroon Oscillator (阿隆震荡线)**。

```talib.AROONOSC()```函数的返回值为:一维数组。
array

talib.AROONOSC(inPriceHL)
talib.AROONOSC(inPriceHL, optInTimePeriod)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.AROONOSC(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AROONOSC(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AROONOSC(records);
    Log(ret);
}

### talib.BOP

```talib.BOP()```函数用于计算**Balance Of Power (均势指标)**。

```talib.BOP()```函数的返回值为:一维数组。
array

talib.BOP(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.BOP(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.BOP(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.BOP(records);
    Log(ret);
}

### talib.CCI

```talib.CCI()```函数用于计算**Commodity Channel Index (顺势指标)**。

```talib.CCI()```函数的返回值为:一维数组。
array

talib.CCI(inPriceHLC)
talib.CCI(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CCI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CCI(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CCI(records);
    Log(ret);
}

### talib.CMO

```talib.CMO()```函数用于计算**Chande Momentum Oscillator (钱德动量摆动指标)**。

```talib.CMO()```函数的返回值为:一维数组。
array

talib.CMO(inReal)
talib.CMO(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.CMO(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CMO(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.CMO(records);
    Log(ret);
}

### talib.DX

```talib.DX()```函数用于计算**Directional Movement Index (动向指数)**。

```talib.DX()```函数的返回值为:一维数组。
array

talib.DX(inPriceHLC)
talib.DX(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.DX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.DX(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.DX(records);
    Log(ret);
}

### talib.MACD

```talib.MACD()```函数用于计算**Moving Average Convergence/Divergence (指数平滑移动平均线)**。

```talib.MACD()```函数的返回值为:二维数组。
array

talib.MACD(inReal)
talib.MACD(inReal, optInFastPeriod)
talib.MACD(inReal, optInFastPeriod, optInSlowPeriod)
talib.MACD(inReal, optInFastPeriod, optInSlowPeriod, optInSignalPeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInFastPeriod```参数用于设置快周期,默认值为12。
optInFastPeriod
false
number
```optInSlowPeriod```参数用于设置慢周期,默认值为26。
optInSlowPeriod
false
number
```optInSignalPeriod```参数用于设置信号周期,默认值为9。
optInSignalPeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MACD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MACD(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MACD(records);
    Log(ret);
}

### talib.MACDEXT

```talib.MACDEXT()```函数用于计算**MACD with controllable MA type (MA型可控 MACD)**。

```talib.MACDEXT()```函数的返回值为:二维数组。
array

talib.MACDEXT(inReal)
talib.MACDEXT(inReal, optInFastPeriod)
talib.MACDEXT(inReal, optInFastPeriod, optInFastMAType)
talib.MACDEXT(inReal, optInFastPeriod, optInFastMAType, optInSlowPeriod)
talib.MACDEXT(inReal, optInFastPeriod, optInFastMAType, optInSlowPeriod, optInSlowMAType)
talib.MACDEXT(inReal, optInFastPeriod, optInFastMAType, optInSlowPeriod, optInSlowMAType, optInSignalPeriod)
talib.MACDEXT(inReal, optInFastPeriod, optInFastMAType, optInSlowPeriod, optInSlowMAType, optInSignalPeriod, optInSignalMAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInFastPeriod```参数用于设置快周期,默认值为12。
optInFastPeriod
false
number
```optInFastMAType```参数用于设置快均线类型,默认值为0。
optInFastMAType
false
number
```optInSlowPeriod```参数用于设置慢周期,默认值为26。
optInSlowPeriod
false
number
```optInSlowMAType```参数用于设置慢均线类型,默认值为0。
optInSlowMAType
false
number
```optInSignalPeriod```参数用于设置信号周期,默认值为9。
optInSignalPeriod
false
number
```optInSignalMAType```参数用于设置信号均线类型,默认值为0。
optInSignalMAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MACDEXT(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MACDEXT(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MACDEXT(records);
    Log(ret);
}

### talib.MACDFIX

```talib.MACDFIX()```函数用于计算**Moving Average Convergence/Divergence Fix 12/26 (移动平均收敛/发散修复12/26)**。

```talib.MACDFIX()```函数的返回值为:二维数组。
array

talib.MACDFIX(inReal)
talib.MACDFIX(inReal, optInSignalPeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInSignalPeriod```参数用于设置信号周期,默认值为9。
optInSignalPeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MACDFIX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MACDFIX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MACDFIX(records);
    Log(ret);
}

### talib.MFI

```talib.MFI()```函数用于计算**Money Flow Index (货币流量指数)**。

```talib.MFI()```函数的返回值为:一维数组。
array

talib.MFI(inPriceHLCV)
talib.MFI(inPriceHLCV, optInTimePeriod)

```inPriceHLCV```参数用于指定K线数据。
inPriceHLCV
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MFI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MFI(records.High, records.Low, records.Close, records.Volume)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MFI(records);
    Log(ret);
}

### talib.MINUS_DI

```talib.MINUS_DI()```函数用于计算**Minus Directional Indicator (负向指标)**。

```talib.MINUS_DI()```函数的返回值为:一维数组。
array

talib.MINUS_DI(inPriceHLC)
talib.MINUS_DI(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MINUS_DI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MINUS_DI(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MINUS_DI(records);
    Log(ret);
}

### talib.MINUS_DM

```talib.MINUS_DM()```函数用于计算**Minus Directional Movement (负向运动)**。

```talib.MINUS_DM()```函数的返回值为:一维数组。
array

talib.MINUS_DM(inPriceHL)
talib.MINUS_DM(inPriceHL, optInTimePeriod)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MINUS_DM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MINUS_DM(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MINUS_DM(records);
    Log(ret);
}

### talib.MOM

```talib.MOM()```函数用于计算**Momentum (动量)**。

```talib.MOM()```函数的返回值为:一维数组。
array

talib.MOM(inReal)
talib.MOM(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为10。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MOM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MOM(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MOM(records);
    Log(ret);
}

### talib.PLUS_DI

```talib.PLUS_DI()```函数用于计算**Plus Directional Indicator (更向指示器)**。

```talib.PLUS_DI()```函数的返回值为:一维数组。
array

talib.PLUS_DI(inPriceHLC)
talib.PLUS_DI(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.PLUS_DI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.PLUS_DI(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.PLUS_DI(records);
    Log(ret);
}

### talib.PLUS_DM

```talib.PLUS_DM()```函数用于计算**Plus Directional Movement (定向运动)**。

```talib.PLUS_DM()```函数的返回值为:一维数组。
array

talib.PLUS_DM(inPriceHL)
talib.PLUS_DM(inPriceHL, optInTimePeriod)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.PLUS_DM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.PLUS_DM(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.PLUS_DM(records);
    Log(ret);
}

### talib.PPO

```talib.PPO()```函数用于计算**Percentage Price Oscillator (价格振荡百分比)**。

```talib.PPO()```函数的返回值为:一维数组。
array

talib.PPO(inReal)
talib.PPO(inReal, optInFastPeriod)
talib.PPO(inReal, optInFastPeriod, optInSlowPeriod)
talib.PPO(inReal, optInFastPeriod, optInSlowPeriod, optInMAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInFastPeriod```参数用于设置快周期,默认值为12。
optInFastPeriod
false
number
```optInSlowPeriod```参数用于设置慢周期,默认值为26。
optInSlowPeriod
false
number
```optInMAType```参数用于设置均线类型,默认值为0。
optInMAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.PPO(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.PPO(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.PPO(records);
    Log(ret);
}

### talib.ROC

```talib.ROC()```函数用于计算**Rate of change : ((price/prevPrice)-1)*100 (变动率指标)**。

```talib.ROC()```函数的返回值为:一维数组。
array

talib.ROC(inReal)
talib.ROC(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为10。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ROC(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ROC(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ROC(records);
    Log(ret);
}

### talib.ROCP

```talib.ROCP()```函数用于计算**Rate of change Percentage: (price-prevPrice)/prevPrice (价格变化率)**。

```talib.ROCP()```函数的返回值为:一维数组。
array

talib.ROCP(inReal)
talib.ROCP(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为10。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ROCP(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ROCP(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ROCP(records);
    Log(ret);
}

### talib.ROCR

```talib.ROCR()```函数用于计算**Rate of change ratio: (price/prevPrice) (价格变化率)**。

```talib.ROCR()```函数的返回值为:一维数组。
array

talib.ROCR(inReal)
talib.ROCR(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为10。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ROCR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ROCR(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ROCR(records);
    Log(ret);
}

### talib.ROCR100

```talib.ROCR100()```函数用于计算**Rate of change ratio 100 scale: (price/prevPrice)*100 (价格变化率)**。

```talib.ROCR100()```函数的返回值为:一维数组。
array

talib.ROCR100(inReal)
talib.ROCR100(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为10。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ROCR100(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ROCR100(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ROCR100(records);
    Log(ret);
}

### talib.RSI

```talib.RSI()```函数用于计算**Relative Strength Index (相对强弱指标)**。

```talib.RSI()```函数的返回值为:一维数组。
array

talib.RSI(inReal)
talib.RSI(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.RSI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.RSI(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.RSI(records);
    Log(ret);
}

### talib.STOCH

```talib.STOCH()```函数用于计算**Stochastic (STOCH指标)**。

```talib.STOCH()```函数的返回值为:二维数组。
array

talib.STOCH(inPriceHLC)
talib.STOCH(inPriceHLC, optInFastK_Period)
talib.STOCH(inPriceHLC, optInFastK_Period, optInSlowK_Period)
talib.STOCH(inPriceHLC, optInFastK_Period, optInSlowK_Period, optInSlowK_MAType)
talib.STOCH(inPriceHLC, optInFastK_Period, optInSlowK_Period, optInSlowK_MAType, optInSlowD_Period)
talib.STOCH(inPriceHLC, optInFastK_Period, optInSlowK_Period, optInSlowK_MAType, optInSlowD_Period, optInSlowD_MAType)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInFastK_Period```参数用于设置Fast-K周期,默认值为5。
optInFastK_Period
false
number
```optInSlowK_Period```参数用于设置Slow-K周期,默认值为3。
optInSlowK_Period
false
number
```optInSlowK_MAType```参数用于设置Slow-K均线类型,默认值为0。
optInSlowK_MAType
false
number
```optInSlowD_Period```参数用于设置Slow-D周期,默认值为3。
optInSlowD_Period
false
number
```optInSlowD_MAType```参数用于设置Slow-D均线类型,默认值为0。
optInSlowD_MAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.STOCH(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.STOCH(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.STOCH(records);
    Log(ret);
}

### talib.STOCHF

```talib.STOCHF()```函数用于计算**Stochastic Fast (快速STOCH指标)**。

```talib.STOCHF()```函数的返回值为:二维数组。
array

talib.STOCHF(inPriceHLC)
talib.STOCHF(inPriceHLC, optInFastK_Period)
talib.STOCHF(inPriceHLC, optInFastK_Period, optInFastD_Period)
talib.STOCHF(inPriceHLC, optInFastK_Period, optInFastD_Period, optInFastD_MAType)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInFastK_Period```参数用于设置Fast-K周期,默认值为5。
optInFastK_Period
false
number
```optInFastD_Period```参数用于设置Fast-D周期,默认值为3。
optInFastD_Period
false
number
```optInFastD_MAType```参数用于设置Fast-D均线类型,默认值为0。
optInFastD_MAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.STOCHF(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.STOCHF(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.STOCHF(records);
    Log(ret);
}

### talib.STOCHRSI

```talib.STOCHRSI()```函数用于计算**Stochastic Relative Strength Index (随机强弱指数)**。

```talib.STOCHRSI()```函数的返回值为:二维数组。
array

talib.STOCHRSI(inReal)
talib.STOCHRSI(inReal, optInTimePeriod)
talib.STOCHRSI(inReal, optInTimePeriod, optInFastK_Period)
talib.STOCHRSI(inReal, optInTimePeriod, optInFastK_Period, optInFastD_Period)
talib.STOCHRSI(inReal, optInTimePeriod, optInFastK_Period, optInFastD_Period, optInFastD_MAType)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number
```optInFastK_Period```参数用于设置Fast-K周期,默认值为5。
optInFastK_Period
false
number
```optInFastD_Period```参数用于设置Fast-D周期,默认值为3。
optInFastD_Period
false
number
```optInFastD_MAType```参数用于设置Fast-D均线类型,默认值为0。
optInFastD_MAType
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.STOCHRSI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.STOCHRSI(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.STOCHRSI(records);
    Log(ret);
}

### talib.TRIX

```talib.TRIX()```函数用于计算**1-day Rate-Of-Change (ROC) of a Triple Smooth EMA (三重指数平滑平均线)**。

```talib.TRIX()```函数的返回值为:一维数组。
array

talib.TRIX(inReal)
talib.TRIX(inReal, optInTimePeriod)

```inReal```参数用于指定K线数据。
inReal
true
{@struct/Record Record}结构数组、数值数组
```optInTimePeriod```参数用于设置周期,默认值为30。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TRIX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TRIX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TRIX(records);
    Log(ret);
}

### talib.ULTOSC

```talib.ULTOSC()```函数用于计算**Ultimate Oscillator (极限振子)**。

```talib.ULTOSC()```函数的返回值为:一维数组。
array

talib.ULTOSC(inPriceHLC)
talib.ULTOSC(inPriceHLC, optInTimePeriod1)
talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2)
talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2, optInTimePeriod3)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod1```参数用于设置第一周期,默认值为7。
optInTimePeriod1
false
number
```optInTimePeriod2```参数用于设置第二周期,默认值为14。
optInTimePeriod2
false
number
```optInTimePeriod3```参数用于设置第三周期,默认值为28。
optInTimePeriod3
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.ULTOSC(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ULTOSC(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ULTOSC(records);
    Log(ret);
}

### talib.WILLR

```talib.WILLR()```函数用于计算**Williams' %R (威廉指标)**。

```talib.WILLR()```函数的返回值为:一维数组。
array

talib.WILLR(inPriceHLC)
talib.WILLR(inPriceHLC, optInTimePeriod)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组
```optInTimePeriod```参数用于设置周期,默认值为14。
optInTimePeriod
false
number

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.WILLR(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.WILLR(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.WILLR(records);
    Log(ret);
}

### talib.AVGPRICE

```talib.AVGPRICE()```函数用于计算**Average Price (平均价格)**。

```talib.AVGPRICE()```函数的返回值为:一维数组。
array

talib.AVGPRICE(inPriceOHLC)

```inPriceOHLC```参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.AVGPRICE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AVGPRICE(records.Open, records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AVGPRICE(records);
    Log(ret);
}

### talib.MEDPRICE

```talib.MEDPRICE()```函数用于计算**Median Price (中位数价格)**。

```talib.MEDPRICE()```函数的返回值为:一维数组。
array

talib.MEDPRICE(inPriceHL)

```inPriceHL```参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.MEDPRICE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MEDPRICE(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MEDPRICE(records);
    Log(ret);
}

### talib.TYPPRICE

```talib.TYPPRICE()```函数用于计算**Typical Price (典型价格)**。

```talib.TYPPRICE()```函数的返回值为:一维数组。
array

talib.TYPPRICE(inPriceHLC)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.TYPPRICE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.TYPPRICE(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.TYPPRICE(records);
    Log(ret);
}

### talib.WCLPRICE

```talib.WCLPRICE()```函数用于计算**Weighted Close Price (加权收盘价)**。

```talib.WCLPRICE()```函数的返回值为:一维数组。
array

talib.WCLPRICE(inPriceHLC)

```inPriceHLC```参数用于指定K线数据。
inPriceHLC
true
{@struct/Record Record}结构数组

```javascript
function main() {
    var records = exchange.GetRecords()
    var ret = talib.WCLPRICE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.WCLPRICE(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.WCLPRICE(records);
    Log(ret);
}

WCLPRICE()Fungsi ini diterangkan dalam dokumen talib library sebagai:WCLPRICE(Records[High,Low,Close]) = Array(outReal)

TA Struktur