matplotlib / matplotlib/mplfinance
More easily Plot Trades or Trade Signals
まだ誰も着手していません。
- 主要言語
- 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;
- Making a numpy array empty/zero
trs = np.zeros((length_to_add, 1)) - Filling it with Nans
trs.fill(np.nan) - Setting my 2 scatter points as I know the index (x) and y values
trs[x] = y - Adding this to a dataframe
toplot.insert(6, "trades", trs, True) - 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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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