资源加载中... loading...

Talib

talib.CDL2CROWS

talib.CDL2CROWS()函数用于计算Two Crows (K线图–两只乌鸦)

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

talib.CDL2CROWS(inPriceOHLC)

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

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);
}

CDL2CROWS()函数在talib库文档中的描述为:CDL2CROWS(Records[Open,High,Low,Close]) = Array(outInteger) 对于Python语言中的调用来说,传参有所不同,需要根据以上描述中的:Records[Open,High,Low,Close]传参。

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

Python策略代码中调用:


talib.CDL2CROWS(records.Open, records.High, records.Low, records.Close)

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

talib.CDL3BLACKCROWS

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

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

talib.CDL3BLACKCROWS(inPriceOHLC)

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

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);
}

CDL3BLACKCROWS()函数在talib库文档中的描述为:CDL3BLACKCROWS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDL3INSIDE

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

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

talib.CDL3INSIDE(inPriceOHLC)

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

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);
}

CDL3INSIDE()函数在talib库文档中的描述为:CDL3INSIDE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDL3LINESTRIKE

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

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

talib.CDL3LINESTRIKE(inPriceOHLC)

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

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);
}

CDL3LINESTRIKE()函数在talib库文档中的描述为:CDL3LINESTRIKE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDL3OUTSIDE

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

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

talib.CDL3OUTSIDE(inPriceOHLC)

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

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);
}

CDL3OUTSIDE()函数在talib库文档中的描述为:CDL3OUTSIDE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDL3STARSINSOUTH

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

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

talib.CDL3STARSINSOUTH(inPriceOHLC)

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

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);
}

CDL3STARSINSOUTH()函数在talib库文档中的描述为:CDL3STARSINSOUTH(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDL3WHITESOLDIERS

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

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

talib.CDL3WHITESOLDIERS(inPriceOHLC)

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

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);
}

CDL3WHITESOLDIERS()函数在talib库文档中的描述为:CDL3WHITESOLDIERS(Records[Open,High,Low,Close]) = Array(outInteger)

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

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);
}

CDLABANDONEDBABY()函数在talib库文档中的描述为:CDLABANDONEDBABY(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger)

talib.CDLADVANCEBLOCK

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

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

talib.CDLADVANCEBLOCK(inPriceOHLC)

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

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);
}

CDLADVANCEBLOCK()函数在talib库文档中的描述为:CDLADVANCEBLOCK(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLBELTHOLD

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

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

talib.CDLBELTHOLD(inPriceOHLC)

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

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);
}

CDLBELTHOLD()函数在talib库文档中的描述为:CDLBELTHOLD(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLBREAKAWAY

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

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

talib.CDLBREAKAWAY(inPriceOHLC)

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

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);
}

CDLBREAKAWAY()函数在talib库文档中的描述为:CDLBREAKAWAY(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLCLOSINGMARUBOZU

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

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

talib.CDLCLOSINGMARUBOZU(inPriceOHLC)

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

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);
}

CDLCLOSINGMARUBOZU()函数在talib库文档中的描述为:CDLCLOSINGMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLCONCEALBABYSWALL

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

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

talib.CDLCONCEALBABYSWALL(inPriceOHLC)

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

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);
}

CDLCONCEALBABYSWALL()函数在talib库文档中的描述为:CDLCONCEALBABYSWALL(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLCOUNTERATTACK

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

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

talib.CDLCOUNTERATTACK(inPriceOHLC)

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

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);
}

CDLCOUNTERATTACK()函数在talib库文档中的描述为:CDLCOUNTERATTACK(Records[Open,High,Low,Close]) = Array(outInteger)

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

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);
}

CDLDARKCLOUDCOVER()函数在talib库文档中的描述为:CDLDARKCLOUDCOVER(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger)

talib.CDLDOJI

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

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

talib.CDLDOJI(inPriceOHLC)

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

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);
}

CDLDOJI()函数在talib库文档中的描述为:CDLDOJI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLDOJISTAR

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

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

talib.CDLDOJISTAR(inPriceOHLC)

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

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);
}

CDLDOJISTAR()函数在talib库文档中的描述为:CDLDOJISTAR(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLDRAGONFLYDOJI

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

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

talib.CDLDRAGONFLYDOJI(inPriceOHLC)

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

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);
}

CDLDRAGONFLYDOJI()函数在talib库文档中的描述为:CDLDRAGONFLYDOJI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLENGULFING

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

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

talib.CDLENGULFING(inPriceOHLC)

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

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);
}

CDLENGULFING()函数在talib库文档中的描述为:CDLENGULFING(Records[Open,High,Low,Close]) = Array(outInteger)

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

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);
}

CDLEVENINGDOJISTAR()函数在talib库文档中的描述为:CDLEVENINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger)

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

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);
}

CDLEVENINGSTAR()函数在talib库文档中的描述为:CDLEVENINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger)

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}结构数组

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);
}

CDLGAPSIDESIDEWHITE()函数在talib库文档中的描述为:CDLGAPSIDESIDEWHITE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLGRAVESTONEDOJI

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

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

talib.CDLGRAVESTONEDOJI(inPriceOHLC)

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

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);
}

CDLGRAVESTONEDOJI()函数在talib库文档中的描述为:CDLGRAVESTONEDOJI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHAMMER

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

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

talib.CDLHAMMER(inPriceOHLC)

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

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);
}

CDLHAMMER()函数在talib库文档中的描述为:CDLHAMMER(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHANGINGMAN

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

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

talib.CDLHANGINGMAN(inPriceOHLC)

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

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);
}

CDLHANGINGMAN()函数在talib库文档中的描述为:CDLHANGINGMAN(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHARAMI

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

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

talib.CDLHARAMI(inPriceOHLC)

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

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);
}

CDLHARAMI()函数在talib库文档中的描述为:CDLHARAMI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHARAMICROSS

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

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

talib.CDLHARAMICROSS(inPriceOHLC)

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

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);
}

CDLHARAMICROSS()函数在talib库文档中的描述为:CDLHARAMICROSS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHIGHWAVE

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

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

talib.CDLHIGHWAVE(inPriceOHLC)

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

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);
}

CDLHIGHWAVE()函数在talib库文档中的描述为:CDLHIGHWAVE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHIKKAKE

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

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

talib.CDLHIKKAKE(inPriceOHLC)

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

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);
}

CDLHIKKAKE()函数在talib库文档中的描述为:CDLHIKKAKE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHIKKAKEMOD

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

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

talib.CDLHIKKAKEMOD(inPriceOHLC)

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

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);
}

CDLHIKKAKEMOD()函数在talib库文档中的描述为:CDLHIKKAKEMOD(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLHOMINGPIGEON

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

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

talib.CDLHOMINGPIGEON(inPriceOHLC)

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

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);
}

CDLHOMINGPIGEON()函数在talib库文档中的描述为:CDLHOMINGPIGEON(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLIDENTICAL3CROWS

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

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

talib.CDLIDENTICAL3CROWS(inPriceOHLC)

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

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);
}

CDLIDENTICAL3CROWS()函数在talib库文档中的描述为:CDLIDENTICAL3CROWS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLINNECK

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

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

talib.CDLINNECK(inPriceOHLC)

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

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);
}

CDLINNECK()函数在talib库文档中的描述为:CDLINNECK(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLINVERTEDHAMMER

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

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

talib.CDLINVERTEDHAMMER(inPriceOHLC)

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

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);
}

CDLINVERTEDHAMMER()函数在talib库文档中的描述为:CDLINVERTEDHAMMER(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLKICKING

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

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

talib.CDLKICKING(inPriceOHLC)

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

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);
}

CDLKICKING()函数在talib库文档中的描述为:CDLKICKING(Records[Open,High,Low,Close]) = Array(outInteger)

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}结构数组

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);
}

CDLKICKINGBYLENGTH()函数在talib库文档中的描述为:CDLKICKINGBYLENGTH(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLLADDERBOTTOM

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

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

talib.CDLLADDERBOTTOM(inPriceOHLC)

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

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);
}

CDLLADDERBOTTOM()函数在talib库文档中的描述为:CDLLADDERBOTTOM(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLLONGLEGGEDDOJI

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

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

talib.CDLLONGLEGGEDDOJI(inPriceOHLC)

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

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);
}

CDLLONGLEGGEDDOJI()函数在talib库文档中的描述为:CDLLONGLEGGEDDOJI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLLONGLINE

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

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

talib.CDLLONGLINE(inPriceOHLC)

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

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);
}

CDLLONGLINE()函数在talib库文档中的描述为:CDLLONGLINE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLMARUBOZU

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

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

talib.CDLMARUBOZU(inPriceOHLC)

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

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);
}

CDLMARUBOZU()函数在talib库文档中的描述为:CDLMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLMATCHINGLOW

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

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

talib.CDLMATCHINGLOW(inPriceOHLC)

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

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);
}

CDLMATCHINGLOW()函数在talib库文档中的描述为:CDLMATCHINGLOW(Records[Open,High,Low,Close]) = Array(outInteger)

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

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);
}

CDLMATHOLD()函数在talib库文档中的描述为:CDLMATHOLD(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger)

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

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);
}

CDLMORNINGDOJISTAR()函数在talib库文档中的描述为:CDLMORNINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger)

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

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);
}

CDLMORNINGSTAR()函数在talib库文档中的描述为:CDLMORNINGSTAR(Records[Open,High,Low,Close],Penetration=0.3) = Array(outInteger)

talib.CDLONNECK

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

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

talib.CDLONNECK(inPriceOHLC)

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

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);
}

CDLONNECK()函数在talib库文档中的描述为:CDLONNECK(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLPIERCING

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

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

talib.CDLPIERCING(inPriceOHLC)

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

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);
}

CDLPIERCING()函数在talib库文档中的描述为:CDLPIERCING(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLRICKSHAWMAN

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

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

talib.CDLRICKSHAWMAN(inPriceOHLC)

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

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);
}

CDLRICKSHAWMAN()函数在talib库文档中的描述为:CDLRICKSHAWMAN(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLRISEFALL3METHODS

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

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

talib.CDLRISEFALL3METHODS(inPriceOHLC)

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

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);
}

CDLRISEFALL3METHODS()函数在talib库文档中的描述为:CDLRISEFALL3METHODS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSEPARATINGLINES

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

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

talib.CDLSEPARATINGLINES(inPriceOHLC)

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

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);
}

CDLSEPARATINGLINES()函数在talib库文档中的描述为:CDLSEPARATINGLINES(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSHOOTINGSTAR

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

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

talib.CDLSHOOTINGSTAR(inPriceOHLC)

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

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);
}

CDLSHOOTINGSTAR()函数在talib库文档中的描述为:CDLSHOOTINGSTAR(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSHORTLINE

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

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

talib.CDLSHORTLINE(inPriceOHLC)

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

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);
}

CDLSHORTLINE()函数在talib库文档中的描述为:CDLSHORTLINE(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSPINNINGTOP

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

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

talib.CDLSPINNINGTOP(inPriceOHLC)

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

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);
}

CDLSPINNINGTOP()函数在talib库文档中的描述为:CDLSPINNINGTOP(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSTALLEDPATTERN

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

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

talib.CDLSTALLEDPATTERN(inPriceOHLC)

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

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);
}

CDLSTALLEDPATTERN()函数在talib库文档中的描述为:CDLSTALLEDPATTERN(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLSTICKSANDWICH

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

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

talib.CDLSTICKSANDWICH(inPriceOHLC)

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

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);
}

CDLSTICKSANDWICH()函数在talib库文档中的描述为:CDLSTICKSANDWICH(Records[Open,High,Low,Close]) = Array(outInteger)

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}结构数组

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);
}

CDLTAKURI()函数在talib库文档中的描述为:CDLTAKURI(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLTASUKIGAP

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

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

talib.CDLTASUKIGAP(inPriceOHLC)

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

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);
}

CDLTASUKIGAP()函数在talib库文档中的描述为:CDLTASUKIGAP(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLTHRUSTING

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

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

talib.CDLTHRUSTING(inPriceOHLC)

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

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);
}

CDLTHRUSTING()函数在talib库文档中的描述为:CDLTHRUSTING(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLTRISTAR

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

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

talib.CDLTRISTAR(inPriceOHLC)

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

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);
}

CDLTRISTAR()函数在talib库文档中的描述为:CDLTRISTAR(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLUNIQUE3RIVER

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

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

talib.CDLUNIQUE3RIVER(inPriceOHLC)

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

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);
}

CDLUNIQUE3RIVER()函数在talib库文档中的描述为:CDLUNIQUE3RIVER(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLUPSIDEGAP2CROWS

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

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

talib.CDLUPSIDEGAP2CROWS(inPriceOHLC)

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

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);
}

CDLUPSIDEGAP2CROWS()函数在talib库文档中的描述为:CDLUPSIDEGAP2CROWS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLXSIDEGAP3METHODS

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

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

talib.CDLXSIDEGAP3METHODS(inPriceOHLC)

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

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);
}

CDLXSIDEGAP3METHODS()函数在talib库文档中的描述为:CDLXSIDEGAP3METHODS(Records[Open,High,Low,Close]) = Array(outInteger)

talib.AD

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

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

talib.AD(inPriceHLCV)

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

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);
}

AD()函数在talib库文档中的描述为:AD(Records[High,Low,Close,Volume]) = Array(outReal)

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

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);
}

ADOSC()函数在talib库文档中的描述为:ADOSC(Records[High,Low,Close,Volume],Fast Period = 3,Slow Period = 10) = Array(outReal)

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}结构数组

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);
}

OBV()函数在talib库文档中的描述为:OBV(Records[Close],Records[Volume]) = Array(outReal)

talib.ACOS

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

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

talib.ACOS(inReal)

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

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);
}

ACOS()函数在talib库文档中的描述为:ACOS(Records[Close]) = Array(outReal)

talib.ASIN

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

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

talib.ASIN(inReal)

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

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);
}

ASIN()函数在talib库文档中的描述为:ASIN(Records[Close]) = Array(outReal)

talib.ATAN

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

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

talib.ATAN(inReal)

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

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);
}

ATAN()函数在talib库文档中的描述为:ATAN(Records[Close]) = Array(outReal)

talib.CEIL

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

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

talib.CEIL(inReal)

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

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);
}

CEIL()函数在talib库文档中的描述为:CEIL(Records[Close]) = Array(outReal)

talib.COS

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

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

talib.COS(inReal)

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

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);
}

COS()函数在talib库文档中的描述为:COS(Records[Close]) = Array(outReal)

talib.COSH

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

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

talib.COSH(inReal)

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

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);
}

COSH()函数在talib库文档中的描述为:COSH(Records[Close]) = Array(outReal)

talib.EXP

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

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

talib.EXP(inReal)

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

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);
}

EXP()函数在talib库文档中的描述为:EXP(Records[Close]) = Array(outReal)

talib.FLOOR

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

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

talib.FLOOR(inReal)

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

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);
}

FLOOR()函数在talib库文档中的描述为:FLOOR(Records[Close]) = Array(outReal)

talib.LN

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

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

talib.LN(inReal)

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

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);
}

LN()函数在talib库文档中的描述为:LN(Records[Close]) = Array(outReal)

talib.LOG10

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

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

talib.LOG10(inReal)

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

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);
}

LOG10()函数在talib库文档中的描述为:LOG10(Records[Close]) = Array(outReal)

talib.SIN

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

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

talib.SIN(inReal)

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

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);
}

SIN()函数在talib库文档中的描述为:SIN(Records[Close]) = Array(outReal)

talib.SINH

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

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

talib.SINH(inReal)

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

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);
}

SINH()函数在talib库文档中的描述为:SINH(Records[Close]) = Array(outReal)

talib.SQRT

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

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

talib.SQRT(inReal)

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

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);
}

SQRT()函数在talib库文档中的描述为:SQRT(Records[Close]) = Array(outReal)

talib.TAN

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

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

talib.TAN(inReal)

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

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);
}

TAN()函数在talib库文档中的描述为:TAN(Records[Close]) = Array(outReal)

talib.TANH

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

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

talib.TANH(inReal)

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

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);
}

TANH()函数在talib库文档中的描述为:TANH(Records[Close]) = Array(outReal)

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

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);
}

MAX()函数在talib库文档中的描述为:MAX(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

MAXINDEX()函数在talib库文档中的描述为:MAXINDEX(Records[Close],Time Period = 30) = Array(outInteger)

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

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);
}

MIN()函数在talib库文档中的描述为:MIN(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

MININDEX()函数在talib库文档中的描述为:MININDEX(Records[Close],Time Period = 30) = Array(outInteger)

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

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);
}

MINMAX()函数在talib库文档中的描述为:MINMAX(Records[Close],Time Period = 30) = [Array(outMin),Array(outMax)]

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

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);
}

MINMAXINDEX()函数在talib库文档中的描述为:MINMAXINDEX(Records[Close],Time Period = 30) = [Array(outMinIdx),Array(outMaxIdx)]

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

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);
}

SUM()函数在talib库文档中的描述为:SUM(Records[Close],Time Period = 30) = Array(outReal)

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}结构数组、数值数组

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);
}

HT_DCPERIOD()函数在talib库文档中的描述为:HT_DCPERIOD(Records[Close]) = Array(outReal)

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}结构数组、数值数组

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);
}

HT_DCPHASE()函数在talib库文档中的描述为:HT_DCPHASE(Records[Close]) = Array(outReal)

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}结构数组、数值数组

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);
}

HT_PHASOR()函数在talib库文档中的描述为:HT_PHASOR(Records[Close]) = [Array(outInPhase),Array(outQuadrature)]

talib.HT_SINE

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

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

talib.HT_SINE(inReal)

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

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);
}

HT_SINE()函数在talib库文档中的描述为:HT_SINE(Records[Close]) = [Array(outSine),Array(outLeadSine)]

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}结构数组、数值数组

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);
}

HT_TRENDMODE()函数在talib库文档中的描述为:HT_TRENDMODE(Records[Close]) = Array(outInteger)

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

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);
}

ATR()函数在talib库文档中的描述为:ATR(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

NATR()函数在talib库文档中的描述为:NATR(Records[High,Low,Close],Time Period = 14) = Array(outReal)

talib.TRANGE

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

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

talib.TRANGE(inPriceHLC)

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

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);
}

TRANGE()函数在talib库文档中的描述为:TRANGE(Records[High,Low,Close]) = Array(outReal)

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

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);
}

BBANDS()函数在talib库文档中的描述为:BBANDS(Records[Close],Time Period = 5,Deviations up = 2,Deviations down = 2,MA Type = 0) = [Array(outRealUpperBand),Array(outRealMiddleBand),Array(outRealLowerBand)]

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

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);
}

DEMA()函数在talib库文档中的描述为:DEMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

EMA()函数在talib库文档中的描述为:EMA(Records[Close],Time Period = 30) = Array(outReal)

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}结构数组、数值数组

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);
}

HT_TRENDLINE()函数在talib库文档中的描述为:HT_TRENDLINE(Records[Close]) = Array(outReal)

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

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);
}

KAMA()函数在talib库文档中的描述为:KAMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

MA()函数在talib库文档中的描述为:MA(Records[Close],Time Period = 30,MA Type = 0) = Array(outReal)

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

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);
}

MAMA()函数在talib库文档中的描述为:MAMA(Records[Close],Fast Limit = 0.5,Slow Limit = 0.05) = [Array(outMAMA),Array(outFAMA)]

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

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);
}

MIDPOINT()函数在talib库文档中的描述为:MIDPOINT(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

MIDPRICE()函数在talib库文档中的描述为:MIDPRICE(Records[High,Low],Time Period = 14) = Array(outReal)

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

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);
}

SAR()函数在talib库文档中的描述为:SAR(Records[High,Low],Acceleration Factor = 0.02,AF Maximum = 0.2) = Array(outReal)

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

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);
}

SAREXT()函数在talib库文档中的描述为:SAREXT(Records[High,Low],Start Value = 0,Offset on Reverse = 0,AF Init Long = 0.02,AF Long = 0.02,AF Max Long = 0.2,AF Init Short = 0.02,AF Short = 0.02,AF Max Short = 0.2) = Array(outReal)

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

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);
}

SMA()函数在talib库文档中的描述为:SMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

T3()函数在talib库文档中的描述为:T3(Records[Close],Time Period = 5,Volume Factor = 0.7) = Array(outReal)

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

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);
}

TEMA()函数在talib库文档中的描述为:TEMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

TRIMA()函数在talib库文档中的描述为:TRIMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

WMA()函数在talib库文档中的描述为:WMA(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

LINEARREG()函数在talib库文档中的描述为:LINEARREG(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

LINEARREG_ANGLE()函数在talib库文档中的描述为:LINEARREG_ANGLE(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

LINEARREG_INTERCEPT()函数在talib库文档中的描述为:LINEARREG_INTERCEPT(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

LINEARREG_SLOPE()函数在talib库文档中的描述为:LINEARREG_SLOPE(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

STDDEV()函数在talib库文档中的描述为:STDDEV(Records[Close],Time Period = 5,Deviations = 1) = Array(outReal)

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

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);
}

TSF()函数在talib库文档中的描述为:TSF(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

VAR()函数在talib库文档中的描述为:VAR(Records[Close],Time Period = 5,Deviations = 1) = Array(outReal)

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

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);
}

ADX()函数在talib库文档中的描述为:ADX(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

ADXR()函数在talib库文档中的描述为:ADXR(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

APO()函数在talib库文档中的描述为:APO(Records[Close],Fast Period = 12,Slow Period = 26,MA Type = 0) = Array(outReal)

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

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);
}

AROON()函数在talib库文档中的描述为:AROON(Records[High,Low],Time Period = 14) = [Array(outAroonDown),Array(outAroonUp)]

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

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);
}

AROONOSC()函数在talib库文档中的描述为:AROONOSC(Records[High,Low],Time Period = 14) = Array(outReal)

talib.BOP

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

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

talib.BOP(inPriceOHLC)

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

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);
}

BOP()函数在talib库文档中的描述为:BOP(Records[Open,High,Low,Close]) = Array(outReal)

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

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);
}

CCI()函数在talib库文档中的描述为:CCI(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

CMO()函数在talib库文档中的描述为:CMO(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

DX()函数在talib库文档中的描述为:DX(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

MACD()函数在talib库文档中的描述为:MACD(Records[Close],Fast Period = 12,Slow Period = 26,Signal Period = 9) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)]

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

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);
}

MACDEXT()函数在talib库文档中的描述为:MACDEXT(Records[Close],Fast Period = 12,Fast MA = 0,Slow Period = 26,Slow MA = 0,Signal Period = 9,Signal MA = 0) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)]

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

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);
}

MACDFIX()函数在talib库文档中的描述为:MACDFIX(Records[Close],Signal Period = 9) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)]

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

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);
}

MFI()函数在talib库文档中的描述为:MFI(Records[High,Low,Close,Volume],Time Period = 14) = Array(outReal)

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

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);
}

MINUS_DI()函数在talib库文档中的描述为:MINUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

MINUS_DM()函数在talib库文档中的描述为:MINUS_DM(Records[High,Low],Time Period = 14) = Array(outReal)

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

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);
}

MOM()函数在talib库文档中的描述为:MOM(Records[Close],Time Period = 10) = Array(outReal)

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

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);
}

PLUS_DI()函数在talib库文档中的描述为:PLUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal)

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

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);
}

PLUS_DM()函数在talib库文档中的描述为:PLUS_DM(Records[High,Low],Time Period = 14) = Array(outReal)

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

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);
}

PPO()函数在talib库文档中的描述为:PPO(Records[Close],Fast Period = 12,Slow Period = 26,MA Type = 0) = Array(outReal)

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

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);
}

ROC()函数在talib库文档中的描述为:ROC(Records[Close],Time Period = 10) = Array(outReal)

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

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);
}

ROCP()函数在talib库文档中的描述为:ROCP(Records[Close],Time Period = 10) = Array(outReal)

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

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);
}

ROCR()函数在talib库文档中的描述为:ROCR(Records[Close],Time Period = 10) = Array(outReal)

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

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);
}

ROCR100()函数在talib库文档中的描述为:ROCR100(Records[Close],Time Period = 10) = Array(outReal)

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

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);
}

RSI()函数在talib库文档中的描述为:RSI(Records[Close],Time Period = 14) = Array(outReal)

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

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);
}

STOCH()函数在talib库文档中的描述为:STOCH(Records[High,Low,Close],Fast-K Period = 5,Slow-K Period = 3,Slow-K MA = 0,Slow-D Period = 3,Slow-D MA = 0) = [Array(outSlowK),Array(outSlowD)]

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

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);
}

STOCHF()函数在talib库文档中的描述为:STOCHF(Records[High,Low,Close],Fast-K Period = 5,Fast-D Period = 3,Fast-D MA = 0) = [Array(outFastK),Array(outFastD)]

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

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);
}

STOCHRSI()函数在talib库文档中的描述为:STOCHRSI(Records[Close],Time Period = 14,Fast-K Period = 5,Fast-D Period = 3,Fast-D MA = 0) = [Array(outFastK),Array(outFastD)]

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

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);
}

TRIX()函数在talib库文档中的描述为:TRIX(Records[Close],Time Period = 30) = Array(outReal)

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

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);
}

ULTOSC()函数在talib库文档中的描述为:ULTOSC(Records[High,Low,Close],First Period = 7,Second Period = 14,Third Period = 28) = Array(outReal)

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

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);
}

WILLR()函数在talib库文档中的描述为:WILLR(Records[High,Low,Close],Time Period = 14) = Array(outReal)

talib.AVGPRICE

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

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

talib.AVGPRICE(inPriceOHLC)

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

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);
}

AVGPRICE()函数在talib库文档中的描述为:AVGPRICE(Records[Open,High,Low,Close]) = Array(outReal)

talib.MEDPRICE

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

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

talib.MEDPRICE(inPriceHL)

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

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);
}

MEDPRICE()函数在talib库文档中的描述为:MEDPRICE(Records[High,Low]) = Array(outReal)

talib.TYPPRICE

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

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

talib.TYPPRICE(inPriceHLC)

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

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);
}

TYPPRICE()函数在talib库文档中的描述为:TYPPRICE(Records[High,Low,Close]) = Array(outReal)

talib.WCLPRICE

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

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

talib.WCLPRICE(inPriceHLC)

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

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()函数在talib库文档中的描述为:WCLPRICE(Records[High,Low,Close]) = Array(outReal)

TA 结构体