The talib.LOG10()
function is used to calculate Vector Log10 (logarithmic function).
The return value of the talib.LOG10()
function is a one-dimensional array.
array
talib.LOG10(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 = [10, 100, 1000]
var ret = talib.LOG10(data)
Log(ret)
}
import talib
import numpy as np
def main():
data = [10.0, 100.0, 1000.0]
ret = talib.LOG10(np.array(data))
Log(ret)
void main() {
std::vector<double> data = {10, 100, 1000};
auto ret = talib.LOG10(data);
Log(ret);
}
The LOG10()
function is described in the talib library documentation as: LOG10(Records[Close]) = Array(outReal)