matplotlib / matplotlib/mplfinance

How to display only the last 50 bars with renko?

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

Hi,
reading only the last 50 rows from the csv file is not suitable for not timebased charts, or when the timebased data file's granulation differs from the plotted timeframe.
Though, dropping some of the bars from the left will be also a task for the animation also,
I'm asking it if there are already a solution for it?
(did not found in the codes a 'maxbars' like property)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that reads CSV data, builds Renko and other non-time-based plots, and drives animation. Determine how a maximum visible bar count could work when source granularity differs from the plotted timeframe, and consider the issue resolved when only the requested last 50 bars remain visible during plotting and animation.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.