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
582e5dac
Commit
582e5dac
authored
Aug 24, 2023
by
wenwen.tang
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
3c0efd88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
config-svrobo6.yml
config-svrobo6.yml
+1
-1
holder.py
portfolios/holder.py
+1
-0
No files found.
config-svrobo6.yml
View file @
582e5dac
...
...
@@ -88,7 +88,7 @@ portfolios: # 投组模块
solver
:
# 解算器相关
model
:
prr
# 结算模型 ARC ,PRR, ~ 标准解算器
arc
:
on
#是否开启ARC
brr
:
0.01
brr
:
0.01
#误差补偿值
trr
:
3
tol
:
1E-10
# 误差满足条件
navs
:
# 净值要求
...
...
portfolios/holder.py
View file @
582e5dac
...
...
@@ -114,6 +114,7 @@ class DividendPortfoliosHolder(PortfoliosHolder):
dividend
=
last_nav
[
'div_forecast'
]
fund_av
=
fund_av
-
last_nav
[
'div_forecast'
]
dividend_acc
=
last_nav
[
'div_forecast'
]
+
dividend_acc
div_forecast
=
dividend
asset_nav
=
fund_av
+
fund_dividend
+
dividend
nav
=
last_nav
[
'nav'
]
*
asset_nav
/
last_nav
[
'asset_nav'
]
share
=
{
x
:
fund_av
*
w
/
navs
[
x
]
for
x
,
w
in
weight
.
items
()}
...
...
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