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)