Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
9aa56587
Commit
9aa56587
authored
Feb 08, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报告颜色,删除0持仓的描述
parent
e7fcfde1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
portfolio_diagnose.py
app/service/portfolio_diagnose.py
+4
-4
monthReportV2.1.html
app/templates/v2/monthReportV2.1.html
+2
-2
No files found.
app/service/portfolio_diagnose.py
View file @
9aa56587
...
@@ -970,14 +970,14 @@ class PortfolioDiagnose(object):
...
@@ -970,14 +970,14 @@ class PortfolioDiagnose(object):
sentence
=
{
sentence
=
{
1
:
"1、组合构建于{}年{}月,至今已运行{}个月。投入成本为{}万元,截止{}年{}月{}日,整体盈利{}万元,整体表现{},回撤控制能力{};
\n
"
,
1
:
"1、组合构建于{}年{}月,至今已运行{}个月。投入成本为{}万元,截止{}年{}月{}日,整体盈利{}万元,整体表现{},回撤控制能力{};
\n
"
,
2
:
"2、组合共持有{}只基金,{}{}{}{}
\n
"
,
#
2: "2、组合共持有{}只基金,{}{}{}{}\n",
3
:
"3
、策略角度来看,组合涵盖了{}, {}{}
\n
"
2
:
"2
、策略角度来看,组合涵盖了{}, {}{}
\n
"
}
}
data
=
{
1
:
[
start_year
,
start_month
,
past_month
,
input_cost
,
current_year
,
current_month
,
current_day
,
data
=
{
1
:
[
start_year
,
start_month
,
past_month
,
input_cost
,
current_year
,
current_month
,
current_day
,
total_profit
,
z_score_evaluate
,
drawdown_evaluate
],
total_profit
,
z_score_evaluate
,
drawdown_evaluate
],
2
:
[
num_fund
,
return_rank_evaluate
,
profit_positive_evaluate
,
abandon_evaluate
,
no_data_fund_evaluate
],
#
2: [num_fund, return_rank_evaluate, profit_positive_evaluate, abandon_evaluate, no_data_fund_evaluate],
3
:
[
strategy_name_evaluate
,
strategy_distribution_evaluate
,
fund_corr_evaluate
]
2
:
[
strategy_name_evaluate
,
strategy_distribution_evaluate
,
fund_corr_evaluate
]
}
}
ret
=
[]
ret
=
[]
for
k
,
v
in
data
.
items
():
for
k
,
v
in
data
.
items
():
...
...
app/templates/v2/monthReportV2.1.html
View file @
9aa56587
...
@@ -1244,10 +1244,10 @@
...
@@ -1244,10 +1244,10 @@
<td>
<td>
盈亏
盈亏
</td>
</td>
<td
class=
"text_red"
>
<td>
{{value["1"]["profit"]}}
{{value["1"]["profit"]}}
</td>
</td>
<td
class=
"text_green"
>
<td>
{{value["2"]["profit"]}}
{{value["2"]["profit"]}}
</td>
</td>
<td>
<td>
...
...
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