The talib.CDLABANDONEDBABY()
function is used to calculate Abandoned Baby (K-line chart: Abandoned Baby).
The return value of the talib.CDLABANDONEDBABY()
function is: a one-dimensional array.
array
talib.CDLABANDONEDBABY(inPriceOHLC) talib.CDLABANDONEDBABY(inPriceOHLC, optInPenetration)
The inPriceOHLC
parameter is used to specify the K-line data.
inPriceOHLC
true
{@struct/Record Record} structure array
The optInPenetration
parameter is used to set the Penetration, the default value is 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);
}
The CDLABANDONEDBABY()
function is described in the talib library documentation as: CDLABANDONEDBABY(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger)