matplotlib / matplotlib/mplfinance
how to show more area at the far right side of the Ichimoku Cloud Chart
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 4.4k
- Forks
- 678
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Greeting!
I am a newbie in Python, and I greatly appreciate this brilliantly made built-in package for visualization of yfinance data.
I am learning and trying to plot the Ichimoku Cloud Chart, and found that the plot displayed would show with the x-axis limited at the latest data date, while the Ichimoku indicator actually would plot the cloud area 26days into future.
I tried to extend the x-axis using the xlim() function to extend 1 month into future, but the cloud still is not shown in the plot.
I have checked and make sure that in my calculations, the shift() function is applied to the calculation of the 3 lines, Leading Span A, Leading Span B, and Lagging Span. Thus I believe that there would be data to be plotted for the future date.
The first chart below is the plot generated from my broken code.
And the lower chart is a chart I got from a free online platform. I target to make my plot look more or less like this.
May I get help on how I can correctly plot the cloud for the Ichimoku chart?
Thanks in advance.
This is the chart plotted from my broken python code

This is the chart I got from a free online platform. I target to make my plot look more or less like this.

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Issue erwähnt das Plotten mit mplfinance, xlim() und verschobene Ichimoku-Linien, enthält aber keine Quelldatei, kein ausführbares Beispiel und keinen Test, mit dem man beginnen könnte. Reproduziere das berichtete Diagrammverhalten anhand der bereitgestellten Screenshots und ermittle, wie die vollständige Darstellung der zukünftigen Cloud aussehen sollte, bevor du einen Regressionstest hinzufügst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- matplotlib, python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100