Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
robo-dividend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenwen.tang
robo-dividend
Commits
3d39807e
Commit
3d39807e
authored
Jan 10, 2023
by
jichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加危机1信号判断逻辑
parent
6a2b88ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
config.yml
config.yml
+2
-2
curve_drift.py
rebalance/signals/curve_drift.py
+2
-1
No files found.
config.yml
View file @
3d39807e
...
...
@@ -41,7 +41,7 @@ py-jftech:
names
:
crisis_one
:
rebalance.signals.crisis_signal.LastRateCrisisOneSignal
date-curve
:
rebalance.drift_solver.DateCurve
curve-drift
:
rebalance.signals.curve_drift.
Max120t
CurveDrift
curve-drift
:
rebalance.signals.curve_drift.CurveDrift
market-right
:
rebalance.signals.right_side.MarketRight
email
:
server
:
smtphz.qiye.163.com
...
...
@@ -150,7 +150,7 @@ rebalance: # 再平衡模块
crisis-1
:
# 危机1相关
mean-count
:
850
# spx去多少交易日计算平均值
consecut-days
:
5
# spx连续多少天跌破平均值则触发
threshold
:
-0.
05
# spx计算后跌破阀值
threshold
:
-0.
1
# spx计算后跌破阀值
crisis-2
:
# 危机2相关
negative-growth
:
1
# 实际利率负增长时长,单位年,点到点取值
fed-months
:
3
# fed 滚动月份,点到点取值
...
...
rebalance/signals/curve_drift.py
View file @
3d39807e
...
...
@@ -22,7 +22,8 @@ class CurveDrift(BaseRebalanceSignal):
SignalType
.
CRISIS_ONE
,
SignalType
.
CRISIS_TWO
,
SignalType
.
MARKET_RIGHT
,
SignalType
.
INIT
SignalType
.
INIT
,
SignalType
.
LOW_BUY
]
def
is_trigger
(
self
,
day
,
risk
:
PortfoliosRisk
)
->
bool
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment