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

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.CDLMORNINGDOJISTAR talib.CDLONNECK