Numpy Array to LineBuffer
Developing Coder last edited by Developing Coder
I'm doing some math in an indicator and in the process
LineBufferis converted into a Numpy
ndarray. Is it possible to convert back?
log_hl = np.log(self.datas.high / self.datas.low)
As one of the goals of backtrader is to NOT depend on external packages, there is neither a
LineBuffer is converted into a Numpy ndarray
Is it possible to convert back?
You have gotten a standard Python
listfrom from of the lines and used to create a
In any case there is no need to do neither a nor b. Use
ApplyNand use the function of your choosing (apparently
log) - Docs - Indicator Reference