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

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.CDLTHRUSTING talib.CDLUNIQUE3RIVER