Hey,
first of all thanks a lot for this great project.
When line_profiling an indicator with @profile I stumbled across an issue. The talib.MIN calculation is a lot slower than the talib.MAX calculation
Line # Hits Time Per Hit % Time Line Contents
==============================================================
335 @profile
337
338 9999 394194.0 39.4 3.0 highs_talib = talib.MAX(highs, timeperiod=if_length)
341
343 9999 4080059.0 408.0 30.6 lows_talib = rolling_min_pandas(lows, if_length)
344 9999 6372217.0 637.3 47.9 lows_talib = talib.MIN(lows, timeperiod=if_length)
The fastest I could work around was pandas rolling function, but it is still a lot slower than talib.MAX.
The test was done with 10.000 calculations.
I am sorry as I am quite new to this I don't understand the source code well, but in my opinion with the same amount of data that is formatted the same way talib.MIN should have the same speed than talib.MAX, right?
Thanks for looking into this and for a fix in advance.
Kind regards
Hey,
first of all thanks a lot for this great project.
When line_profiling an indicator with
@profileI stumbled across an issue. The talib.MIN calculation is a lot slower than the talib.MAX calculationThe fastest I could work around was pandas rolling function, but it is still a lot slower than talib.MAX.
The test was done with 10.000 calculations.
I am sorry as I am quite new to this I don't understand the source code well, but in my opinion with the same amount of data that is formatted the same way talib.MIN should have the same speed than talib.MAX, right?
Thanks for looking into this and for a fix in advance.
Kind regards