Weiswave Strategies
Weiswave 量化交易策略工具包,包含 TDX 风格技术指标函数、Weiswave 指标计算、Supertrend 策略等多种量化交易策略和工具。
安装
pip install weiswave-strategies
可选依赖:
# Polars 支持
pip install weiswave-strategies[polars]
# TqSDK 交易支持
pip install weiswave-strategies[tqsdk]
# 完整安装
pip install weiswave-strategies[all]
模块说明
| 模块 | 说明 |
|---|---|
tdx_function |
TDX 风格技术指标函数(HHV, LLV, REF, CROSS 等) |
tdx_function_polars |
Polars 版 TDX 技术指标函数 |
weiswave_indicator |
Weiswave 核心指标计算(StopLine) |
weiswave_indicator_polars |
Polars 版 Weiswave 指标计算 |
weiswave_claude_dataframe |
Weiswave DataFrame 策略 |
supertrend_strategy |
Supertrend 趋势策略 |
supertrend_qqemod_strategy |
Supertrend + QQE Mod 组合策略 |
快速使用
# Supertrend 策略
from weiswave_strategies.supertrend_strategy import calc_supertrend
df = calc_supertrend(df, period=10, multiplier=3.0)
# TDX 技术指标
from weiswave_strategies.tdx_function import HHV, LLV, REF, CROSS
# Weiswave 指标
from weiswave_strategies.weiswave_indicator import calculate_indicator
依赖
- Python >= 3.10
- numpy
- pandas
- loguru
许可
MIT License
Metadata
Release files for weiswave-strategies 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weiswave_strategies-0.1.0.tar.gz | 43.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weiswave_strategies-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.4 kB
Release files / weiswave_strategies-0.1.0.tar.gz
| Download URL | weiswave_strategies-0.1.0.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c67dd437cea217f000287a734097d13b5f1bef523c48e2869c148af9e4f9b97
|
|
BLAKE2b-256 checksum How to use checksums |
590d4d662b1b1fc295553f9020dc905942bf4d539cc0dce724552bf37dff1cb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / weiswave_strategies-0.1.0-py3-none-any.whl
| Download URL | weiswave_strategies-0.1.0-py3-none-any.whl |
|---|---|
| Size | 47.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b36c36ca8a24edc9bc665c9a47dbe2be58633fd3691358bb78356a49cc67d13d
|
|
BLAKE2b-256 checksum How to use checksums |
271967048733cd202c44fa9a4c72d962154e6288bc46c36ca5becb5ef46108c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|