talib.CDLHARAMICROSS()
函数用于计算Harami Cross Pattern (K线图:交叉阴阳线)。
talib.CDLHARAMICROSS()
函数的返回值为:一维数组。
array
talib.CDLHARAMICROSS(inPriceOHLC)
inPriceOHLC
参数用于指定K线数据。
inPriceOHLC
true
{@struct/Record Record}结构数组
function main() {
var records = exchange.GetRecords()
var ret = talib.CDLHARAMICROSS(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.CDLHARAMICROSS(records.Open, records.High, records.Low, records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.CDLHARAMICROSS(records);
Log(ret);
}
CDLHARAMICROSS()
函数在talib库文档中的描述为:CDLHARAMICROSS(Records[Open,High,Low,Close]) = Array(outInteger)