Skip to content

Commit

Permalink
对talib自动生成脚本添加docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
wukan1986 committed Sep 1, 2024
1 parent c889dea commit df378f2
Show file tree
Hide file tree
Showing 6 changed files with 1,646 additions and 18 deletions.
4 changes: 1 addition & 3 deletions examples/demo_ta1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"""
import polars as pl

from polars_ta.utils.helper import TaLibHelper

_ = TaLibHelper
from polars_ta.utils.helper import TaLibHelper # noqa

df = pl.DataFrame(
{
Expand Down
8 changes: 2 additions & 6 deletions examples/demo_ta3.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@
# single input single ouput, no need to handle null/nan values
# # 一输入一输出,不需处理空值
COS(pl.col('A')).alias('COS'),
# single input, multi output
# 多输入一输出
ATR(pl.col('A'), pl.col('B'), pl.col('C'), 2).alias('ATR2'),
# single input, multi output
# 一输入多输出,可通过prefix为多输出添加前缀
# 原为一输入多输出,通过ret_idx指定一输出
BBANDS(pl.col('A'), timeperiod=2, ret_idx=1).alias('BBANDS'),

# multi input multi output
# 多输入多输出。可通过schema直接添加
# 原为多输入多输出,通过ret_idx指定一输出
AROON('A', 'B', timeperiod=2).alias('AROON'),

])
Expand Down
2 changes: 1 addition & 1 deletion polars_ta/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.8"
__version__ = "0.2.9"
Loading

0 comments on commit df378f2

Please sign in to comment.