問題タブ [ta-lib]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1694 参照

python - Pandas datareader has no attribute

So i'm trying to use this simple code to test TA-Lib and the other modules, but i'm having some problems:

Gets the error AttributeError: module 'pandas_datareader.wb' has no attribute 'pandas_datareader' I successfully installed pandas-datareader, but i keep getting the error, did anyone else experience this?

0 投票する
0 に答える
236 参照

python - python pandas dataframe talib KAMA function below breaks the execution seems missed certain key input here

In the below line, trying to make the KAMA function to return a calculated value the stockdata is a dataframe that contains OHLC value, here VClose =stockdata['Close'] To calculate the KAMA value and to store it in the same dataframe list , tried using numpyarray as well here. the "hakamaper" value is 0.5 as required.

What is the problem in the below line of code that crashes the entire code?When executing this line of code the system breaks. Is anything missing anything in the KAMA function here or this is used completely wrong. If this should be working what shall be the right approach, please.

0 投票する
0 に答える
164 参照

python - Ta-lib python STOCHインジケーターがデータフレームにデータを保存していません

後でプロットできるように、STOCH インジケーターの出力をデータフレームに保存しようとしています。これが私が試したことと私が得たものです:

次の出力が得られました。

画像

ご覧のとおり、値が表示されていないか、データフレームに保存されていません。

値を保存せずに、次のようにそれぞれ数値を取得しています。
画像2

出力をデータフレームに保存する方法を教えてください。

編集注:
関数APIではなく抽象APIを使用しています

0 投票する
2 に答える
11069 参照

python - TA-Lib をインポートできない - Python

Python で TA-Lib をインポートしようとしていますが、エラーが発生します。

トレースバック (最新の呼び出しが最後): ファイル ""、1 行目、ファイル "/home/arque/anaconda3/lib/python3.6/site-packages/talib/ init .py"、> 43 行目、._ta_lib からimport ( ModuleNotFoundError: 'talib._ta_lib' という名前のモジュールがありません

インストールするために従う手順:

TA-Lib正常にインストールされましたが、同じものをインポートしようとすると、上記のエラーが発生します。

ここに記載されている解決策も試しましたが、うまくいきませんでした。

Linux Ubuntu 32 ビットおよび Python 3.6を使用する

どんな助けや提案も大歓迎です。

0 投票する
1 に答える
340 参照

python - 一般的な関数 (特に Ta-Lib) を使用して、さまざまな関数とその引数を適用する

pandas df、関数名、必要な入力列、および引数/kwargsを受け取る関数を手伝っていただければ幸いです

df の形式は次のとおりです。

この次のコードは問題ありません。

サンプル:

ただし、talib.STOCH など、異なる列を取ることができる一般的な ApplyIndi​​cator が必要な場合は、複数の引数を取り、異なる列が必要です。

この場合、必要なすべての列が既に df にあると仮定して、一般的な talib 関数で実行する一般的な ApplyIndi​​cator 関数を実行するにはどうすればよいですか。

ありがとうございました。

2 つの機能の詳細: