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

Hello Sir, how to convert renko code to range bar code? #22

Open Vijay4Devops opened 2 years ago

Vijay4Devops commented 2 years ago

I see both renko and range bar chart look alike and have only few differences related to open high low close values calculation. What are the values needed to be changed in renko code in order to get range bar code?

Thank you.

About range bar chart: https://www.investopedia.com/articles/trading/10/range-bar-charts-different-view.asp

ChillarAnand commented 2 years ago

@vijaygamma I don't know much about range bar calculations. Need to look into it.

Vijay4Devops commented 2 years ago

Thanks for replying. Please tell me how to implement renko code with live stock market api rather than visualizing history data from .CSV file.

Thank you.

ChillarAnand commented 2 years ago

This package only provides calculations for various charts.

For real time data, you need to buy API from any broker and then run Renko on top on the streaming data. @vijaygamma

Vijay4Devops commented 2 years ago

Hello, I'm trying to plot renko chart with stock market api(I'm using historical data api as of now). Being a beginner in python I have learnt from various tutorials to get the below result shown in the image. Can you please tell me what are the next steps in plotting the reko chart. I'm using Google Colab to plot the data.

Thank you. IMG_20210928_210047

ChillarAnand commented 2 years ago

@vijaygamma I have written a tutorial long back on how to plot Renko bars with Python. https://avilpage.com/2018/01/how-to-plot-renko-charts-with-python.html