ChillarAnand / stocktrends

A python package to calculate trends in stocks, derivates(Futures & Options) using Renko, PnF, LineBreak etc
GNU General Public License v3.0
233 stars 74 forks source link

Speed/Performance #31

Open rayeni opened 3 months ago

rayeni commented 3 months ago

For starters, I recently found stocktrends and I like it.

For my system, I need to continuously send the entire OHLC DataFrame to Renko() to continuously build the renko DataFrame. As the OHLC grows, the execution time increases. For example, it takes 2.5 seconds to process 8200 rows of OHLC data. In a medium frequency system, that can be too long. Do you have any suggestions on how to reduce the processing time? I'm thinking along the lines of incremental updates. However, I don't quite know how to implement that.

Thanks.

ChillarAnand commented 3 months ago

@rayeni Thanks for raising the issue. We will add feature to stocktrends to improve the performance.