matplotlib / matplotlib/mplfinance

More easily Plot Trades or Trade Signals

オープン
#49 コメント 15 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Python
スター
4.4k
フォーク
678
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず addplot.ipynb と、issue に示されている documented な make_addplot の呼び出しを確認し、次に既存の plotting のエントリーポイントを調べて、addplot データがどのように受け付けられているかを確認します。完了時には、説明されている NumPy array と dataframe の準備を必要とせずに、trade または signal の座標を直接プロットする、より簡単な方法を提供できるようにします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
matplotlib, numpy, pandas, python
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。