The talib.CDLDARKCLOUDCOVER()
function is used to calculate Dark Cloud Cover (K-line chart: dark cloud cover).
The return value of the talib.CDLDARKCLOUDCOVER()
function is a one-dimensional array.
array
talib.CDLDARKCLOUDCOVER(inPriceOHLC) talib.CDLDARKCLOUDCOVER(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.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);
}
The CDLDARKCLOUDCOVER()
function is described in the talib library documentation as: CDLDARKCLOUDCOVER(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger)