Giter VIP home page Giter VIP logo

Comments (1)

DanielGoldfarb avatar DanielGoldfarb commented on May 28, 2024

is there a way I can get the OHLC values for renko chart and the direction of trend (uptrend/downtrend)

Don't know what you are getting at with OHLC values ... renko uses close prices only, and the results are brick values, all of which have the same brick size. Brick values and brick size are both returned.

Regarding up/down trend, moving averages are also returned and you can easily determine trends from these.

Perhaps you want to know the OHLC of the actual brick values for a given date? This may be possible when there are multiple brick values for the same date. You may be able to use resampling (https://github.com/matplotlib/mplfinance/wiki/Resampling-Time-Series-Data-with-Pandas#1-single-time-series-value-to-ohlc-data) to get what you want. Not sure I understand why anyone would want to see renko brick ohlc values. Keep in mind: (1) when there is a single brick on a date, then O==H==L==C, and (2) when there are no bricks on a given date, then O=H=L=C=nan.

from mplfinance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.