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

price_movement_bricks is missing #4

Closed kalusao closed 3 months ago

kalusao commented 5 years ago

Hello Anand,

I get the following error. Indicators.py does not contain the function (def) price_movement_bricks :

AttributeError Traceback (most recent call last)

in () 14 # renko box calcuation based on price movement 15 renko.chart_type = Renko.PRICE_MOVEMENT ---> 16 data = renko.get_ohlc_data() 17 print(data.tail()) ~/anaconda3/lib/python3.6/site-packages/stocktrends/indicators.py in get_ohlc_data(self) 37 self.period_close_bricks() 38 else: ---> 39 self.price_movement_bricks() 40 41 return self.cdf AttributeError: 'Renko' object has no attribute 'price_movement_bricks'
ChillarAnand commented 5 years ago

@kalusao Thanks for reporting the bug. I haven't pushed that part yet. I will push it and make a new relase.

redallica commented 5 years ago

Hey @ChillarAnand Just want to thank you for the great job you are doing here. I'm new to Python, and it seems very hard to find any code regarding Renko charts and Heikin Ashi charts. All the finance libraries are missing it. Even Matplotlib does not support Renko and Heikin Ashi charts. Do you know any way to get interactive Renko charts ? Maybe using bokeh or plotly ?

Looking forward to your new release Best

ChillarAnand commented 5 years ago

@redallica I am not familiar with visualization tools and don't know if any package supports renko.

I will make a new release this weekend.

kalusao commented 5 years ago

@redallica have look here: https://github.com/quantroom-pro/pyrenko/blob/master/pyrenko_tutorial.ipynb it is a library that you can use with other finance libraries

redallica commented 5 years ago

@kalusao Thanks. I will have a look into that. Did you use it by the way ?

kalusao commented 5 years ago

@redallica Yes, I have played with that.

redallica commented 5 years ago

Hey @ChillarAnand Did you finally made your new release ?

ChillarAnand commented 5 years ago

@redallica Sorry for the delay. Got busy with some personal work. Will update in few days.

sshiremath2000 commented 5 years ago

Hi Anand. great lib buddy. I am too waiting for price movement part. i must appreciate for you giving out open source code for renko calcualtions which is very rarely available.

karavind251 commented 5 years ago

Hi @ChillarAnand I am too waiting for price movement part.Could you please update on it

HBK-HBK commented 11 months ago

Hi @ChillarAnand

AttributeError: 'Renko' object has no attribute 'get_bricks'

Please let me know how to resolve it.

otega99 commented 6 months ago

Hi @HBK-HBK use .get_ohlc_data() instead

ChillarAnand commented 3 months ago

This is resolved sometime back. Please re-open if you face any issues.