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

talib.CDLTRISTAR

The talib.CDLTRISTAR() function is used to calculate the Tristar Pattern (K-line chart: Tristar Pattern).

The return value of the talib.CDLTRISTAR() function is: a one-dimensional array. array

talib.CDLTRISTAR(inPriceOHLC)

The inPriceOHLC parameter is used to specify the K-line data. inPriceOHLC true {@struct/Record Record} structure array

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

The CDLTRISTAR() function is described in the talib library documentation as: CDLTRISTAR(Records[Open,High,Low,Close]) = Array(outInteger)

talib.CDLTHRUSTING talib.CDLUNIQUE3RIVER