The talib.COSH()
function is used to calculate Vector Trigonometric Cosh (hyperbolic cosine value).
The return value of the talib.COSH()
function is a one-dimensional array.
array
talib.COSH(inReal)
The inReal
parameter is used to specify the K-line data.
inReal
true
{@struct/Record Record} structure arrays, numeric arrays
function main() {
var data = [-1, 0, 1]
var ret = talib.COSH(data)
Log(ret)
}
import talib
import numpy as np
def main():
data = [-1.0, 0, 1.0]
ret = talib.COSH(np.array(data))
Log(ret)
void main() {
std::vector<double> data = {-1, 0, 1};
auto ret = talib.COSH(data);
Log(ret);
}
The COSH()
function is described in the talib library documentation as: COSH(Records[Close]) = Array(outReal)