matplotlib / matplotlib/mplfinance

More easily Plot Trades or Trade Signals

Aperta
#49 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement
Lingua principale
Python
Stelle
4.4k
Fork
678
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**
Your addplot.ipynb page is phenomenal and I was able to figure out that I can add scatter points by;
1) Making a numpy array empty/zero
trs = np.zeros((length_to_add, 1))
2) Filling it with Nans
trs.fill(np.nan)
3) Setting my 2 scatter points as I know the index (x) and y values
trs[x] = y
4) Adding this to a dataframe
toplot.insert(6, "trades", trs, True)
5) Then using your well documented addplot:
apdict = mpf.make_addplot(toplot['trades'],scatter=True,secondary_y=False)
mpf.plot(toplot,type='candle',volume=True,addplot=apdict)

**Describe the solution you'd like**
While this is great it took a lot of energy - I'm moving from the plotpy (for the candles!) and there I simply wrote:
plt.scatter(trade_list_idx,trade_list_price,c='b')

Which was simpler than messing around with a dataframe and so on.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start with addplot.ipynb and the documented make_addplot call shown in the issue, then review the existing plotting entry point for how addplot data is accepted. Done would provide a simpler way to plot trade or signal coordinates directly, without requiring the described NumPy array and dataframe preparation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
matplotlib, numpy, pandas, python
Ambito
data-visualization
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.