talib.CDLDARKCLOUDCOVER()
函数用于计算Dark Cloud Cover (K线图:乌云盖)。
talib.CDLDARKCLOUDCOVER()
函数的返回值为:一维数组。
array
talib.CDLDARKCLOUDCOVER(inPriceOHLC) talib.CDLDARKCLOUDCOVER(inPriceOHLC, optInPenetration)
inPriceOHLC
参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
optInPenetration
参数用于设置Penetration,默认值为0.5。
optInPenetration
false
number
function main() {
var records = exchange.GetRecords()
var ret = talib.CDLDARKCLOUDCOVER(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.CDLDARKCLOUDCOVER(records.Open, records.High, records.Low, records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.CDLDARKCLOUDCOVER(records);
Log(ret);
}
CDLDARKCLOUDCOVER()
函数在talib库文档中的描述为:CDLDARKCLOUDCOVER(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger)