-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 0.9.63 start coding * 0.9.63 优化 get_symbols * 0.9.63 fix cal_symbols_factor * remove * 0.9.63 fix import * 0.9.63 fix import * 0.9.63 yearly_days 最大值限制在365 * 0.9.63 update * 0.9.63 删除 deprecated 函数 * 0.9.63 支持自定义数据库名称 * 0.9.63 删除不必要的类 * 0.9.63 使用 rs_czsc 替换几个函数 * 0.9.63 github actions 不再支持3.8 * 0.9.63 新增 rust 版本的简单测试 * 0.9.63 新增 rust 版本的简单测试
- Loading branch information
Showing
25 changed files
with
517 additions
and
2,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,22 @@ | |
email: [email protected] | ||
create_dt: 2019/10/29 15:01 | ||
""" | ||
from rs_czsc import ( | ||
daily_performance, | ||
top_drawdowns, | ||
|
||
# python版本:from czsc.traders.weight_backtest import WeightBacktest | ||
WeightBacktest, | ||
) | ||
|
||
from czsc import envs | ||
from czsc import fsa | ||
from czsc import utils | ||
from czsc import traders | ||
from czsc import sensors | ||
from czsc import aphorism | ||
from czsc.traders import rwc | ||
from czsc.traders import cwc | ||
from czsc.analyze import CZSC | ||
from czsc.objects import Freq, Operate, Direction, Signal, Factor, Event, RawBar, NewBar, Position, ZS | ||
from czsc.strategies import CzscStrategyBase, CzscJsonStrategy | ||
|
@@ -25,27 +35,28 @@ | |
PairsPerformance, | ||
combine_holds_and_pairs, | ||
combine_dates_and_pairs, | ||
stock_holds_performance, | ||
DummyBacktest, | ||
SignalsParser, | ||
get_signals_config, | ||
get_signals_freqs, | ||
|
||
WeightBacktest, | ||
stoploss_by_direction, | ||
get_ensemble_weight, | ||
long_short_equity, | ||
|
||
OpensOptimize, | ||
ExitsOptimize, | ||
) | ||
|
||
from czsc.traders.rwc import ( | ||
RedisWeightsClient, | ||
get_strategy_mates, | ||
get_strategy_names, | ||
get_heartbeat_time, | ||
clear_strategy, | ||
get_strategy_weights, | ||
get_strategy_latest, | ||
|
||
OpensOptimize, | ||
ExitsOptimize, | ||
) | ||
|
||
from czsc.utils import ( | ||
timeout_decorator, | ||
mac_address, | ||
|
@@ -81,18 +92,13 @@ | |
risk_free_returns, | ||
resample_to_daily, | ||
|
||
CrossSectionalPerformance, | ||
cross_sectional_ranker, | ||
cross_sectional_ic, | ||
SignalAnalyzer, | ||
SignalPerformance, | ||
daily_performance, | ||
# daily_performance, | ||
rolling_daily_performance, | ||
weekly_performance, | ||
holds_performance, | ||
net_value_stats, | ||
subtract_fee, | ||
top_drawdowns, | ||
# top_drawdowns, | ||
psi, | ||
|
||
home_path, | ||
|
@@ -138,7 +144,6 @@ | |
show_correlation, | ||
show_corr_graph, | ||
show_sectional_ic, | ||
show_factor_returns, | ||
show_factor_layering, | ||
show_symbol_factor_layering, | ||
show_weight_backtest, | ||
|
@@ -175,7 +180,7 @@ | |
from czsc.utils.features import ( | ||
normalize_feature, | ||
normalize_ts_feature, | ||
feture_cross_layering, | ||
feature_cross_layering, | ||
find_most_similarity, | ||
) | ||
|
||
|
@@ -221,13 +226,16 @@ | |
) | ||
|
||
|
||
__version__ = "0.9.62" | ||
__version__ = "0.9.63" | ||
__author__ = "zengbin93" | ||
__email__ = "[email protected]" | ||
__date__ = "20241208" | ||
__date__ = "20250101" | ||
|
||
|
||
def welcome(): | ||
from czsc import aphorism, envs | ||
from czsc.utils import get_dir_size, home_path | ||
|
||
print(f"欢迎使用CZSC!当前版本标识为 {__version__}@{__date__}\n") | ||
aphorism.print_one() | ||
|
||
|
@@ -236,10 +244,8 @@ def welcome(): | |
f"czsc_min_bi_len = {envs.get_min_bi_len()}; " | ||
f"czsc_max_bi_num = {envs.get_max_bi_num()}; " | ||
) | ||
|
||
|
||
if envs.get_welcome(): | ||
welcome() | ||
if get_dir_size(home_path) > pow(1024, 3): | ||
print(f"{home_path} 目录缓存超过1GB,请适当清理。调用 czsc.empty_cache_path() 可以直接清空缓存") | ||
|
||
|
||
if get_dir_size(home_path) > pow(1024, 3): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.