The talib.CDLONNECK()
function is used to calculate the On-Neck Pattern (K-line chart: On-Neck Pattern).
The return value of the talib.CDLONNECK()
function is a one-dimensional array.
array
talib.CDLONNECK(inPriceOHLC)
The inPriceOHLC
parameter is used to specify the K-line data.
inPriceOHLC
true
{@struct/Record Record} structure array
function main() {
var records = exchange.GetRecords()
var ret = talib.CDLONNECK(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.CDLONNECK(records.Open, records.High, records.Low, records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.CDLONNECK(records);
Log(ret);
}
The CDLONNECK()
function is described in the talib library documentation as: CDLONNECK(Records[Open,High,Low,Close]) = Array(outInteger)