Commit 9aa56587 authored by 赵杰's avatar 赵杰

报告颜色,删除0持仓的描述

parent e7fcfde1
...@@ -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():
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment