Update index.html
Browse files- index.html +39 -72
index.html
CHANGED
|
@@ -616,21 +616,21 @@
|
|
| 616 |
"3m_state_ncd": 1.5,
|
| 617 |
"overnight_rate": 1.28,
|
| 618 |
|
| 619 |
-
"gov_bond_under_1y": 1.
|
| 620 |
-
"gov_bond_under_2y": 1.
|
| 621 |
-
"gov_bond_under_3y": 1.
|
| 622 |
-
"gov_bond_under_5y": 1.
|
| 623 |
|
| 624 |
"ncd_1y_state": 1.62,
|
| 625 |
-
"ncd_1y_aaa": 1.
|
| 626 |
-
"ncd_1y_aa": 1.
|
| 627 |
|
| 628 |
-
"credit_1y_aaa_plus": 1.
|
| 629 |
-
"credit_1y_aaa": 1.
|
| 630 |
"credit_1y_aa": 2.1,
|
| 631 |
"credit_2y_aaa_plus": 1.77,
|
| 632 |
"credit_2y_aaa": 1.8,
|
| 633 |
-
"credit_2y_aa": 2.
|
| 634 |
};
|
| 635 |
|
| 636 |
// 资产预期收益率区间(使用您提供的数据)
|
|
@@ -666,91 +666,58 @@
|
|
| 666 |
}
|
| 667 |
};
|
| 668 |
|
| 669 |
-
// 计算基础收益率(不含资本利得)
|
| 670 |
function calculateBaseReturn() {
|
| 671 |
let baseReturn = 0;
|
| 672 |
let leverage = 100;
|
| 673 |
|
| 674 |
if (period === 'SHORT') {
|
| 675 |
-
// 短期限配置 - 无杠杆
|
| 676 |
if (risk === 'CONSERVATIVE') {
|
| 677 |
-
// 保守:7天通知存款50%,实时3m国股行同业存单20%,实时隔夜利率30%
|
| 678 |
baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
|
| 679 |
-
defaultReturns['3m_state_ncd'] * 0.
|
| 680 |
-
defaultReturns['overnight_rate'] * 0.
|
| 681 |
} else if (risk === 'NEUTRAL') {
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
defaultReturns['3m_state_ncd'] * 0.35 +
|
| 685 |
defaultReturns['overnight_rate'] * 0.25;
|
| 686 |
} else { // AGGRESSIVE
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
defaultReturns['3m_state_ncd'] * 0.5 +
|
| 690 |
defaultReturns['overnight_rate'] * 0.2;
|
| 691 |
}
|
| 692 |
} else if (period === 'MEDIUM') {
|
| 693 |
-
// 中期限配置
|
| 694 |
if (risk === 'CONSERVATIVE') {
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
defaultReturns['gov_bond_under_2y'] * 0.15 +
|
| 700 |
-
defaultReturns['ncd_1y_state'] * 0.15 +
|
| 701 |
-
defaultReturns['ncd_1y_aaa'] * 0.15 +
|
| 702 |
-
defaultReturns['credit_1y_aaa_plus'] * 0.2 +
|
| 703 |
-
defaultReturns['credit_1y_aaa'] * 0.2;
|
| 704 |
-
leverage = 100; // 不加杠杆
|
| 705 |
} else if (risk === 'NEUTRAL') {
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
defaultReturns['gov_bond_under_2y'] * 0.15 +
|
| 711 |
-
defaultReturns['ncd_1y_aaa'] * 0.15 +
|
| 712 |
-
defaultReturns['ncd_1y_aa'] * 0.15 +
|
| 713 |
-
defaultReturns['credit_1y_aaa'] * 0.25 +
|
| 714 |
-
defaultReturns['credit_1y_aa'] * 0.2;
|
| 715 |
-
leverage = 110; // 杠杆率110
|
| 716 |
} else { // AGGRESSIVE
|
| 717 |
-
|
| 718 |
-
// 1yAA同业存单30%,1yAA信用债50%,杠杆率120
|
| 719 |
-
baseReturn = defaultReturns['gov_bond_under_1y'] * 0.1 +
|
| 720 |
-
defaultReturns['gov_bond_under_2y'] * 0.1 +
|
| 721 |
defaultReturns['ncd_1y_aa'] * 0.3 +
|
| 722 |
-
defaultReturns['credit_1y_aa'] * 0.
|
| 723 |
-
leverage = 120;
|
| 724 |
}
|
| 725 |
-
} else { // LONG
|
| 726 |
if (risk === 'CONSERVATIVE') {
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
defaultReturns['gov_bond_under_2y'] * 0.15 +
|
| 732 |
-
defaultReturns['ncd_1y_state'] * 0.15 +
|
| 733 |
-
defaultReturns['ncd_1y_aaa'] * 0.15 +
|
| 734 |
-
defaultReturns['credit_2y_aaa_plus'] * 0.2 +
|
| 735 |
-
defaultReturns['credit_2y_aaa'] * 0.2;
|
| 736 |
-
leverage = 100; // 不加杠杆
|
| 737 |
} else if (risk === 'NEUTRAL') {
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
defaultReturns['gov_bond_under_5y'] * 0.15 +
|
| 743 |
-
defaultReturns['ncd_1y_aaa'] * 0.15 +
|
| 744 |
-
defaultReturns['ncd_1y_aa'] * 0.15 +
|
| 745 |
-
defaultReturns['credit_1y_aaa'] * 0.25 +
|
| 746 |
-
defaultReturns['credit_1y_aa'] * 0.2;
|
| 747 |
-
leverage = 110; // 杠杆率110
|
| 748 |
} else { // AGGRESSIVE
|
| 749 |
-
|
| 750 |
-
baseReturn = defaultReturns['gov_bond_under_5y'] * 0.2 +
|
| 751 |
defaultReturns['ncd_1y_aa'] * 0.3 +
|
| 752 |
-
defaultReturns['credit_2y_aa'] * 0.
|
| 753 |
-
leverage = 120;
|
| 754 |
}
|
| 755 |
}
|
| 756 |
|
|
|
|
| 616 |
"3m_state_ncd": 1.5,
|
| 617 |
"overnight_rate": 1.28,
|
| 618 |
|
| 619 |
+
"gov_bond_under_1y": 1.33,
|
| 620 |
+
"gov_bond_under_2y": 1.38,
|
| 621 |
+
"gov_bond_under_3y": 1.41,
|
| 622 |
+
"gov_bond_under_5y": 1.55,
|
| 623 |
|
| 624 |
"ncd_1y_state": 1.62,
|
| 625 |
+
"ncd_1y_aaa": 1.64,
|
| 626 |
+
"ncd_1y_aa": 1.68,
|
| 627 |
|
| 628 |
+
"credit_1y_aaa_plus": 1.62,
|
| 629 |
+
"credit_1y_aaa": 1.66,
|
| 630 |
"credit_1y_aa": 2.1,
|
| 631 |
"credit_2y_aaa_plus": 1.77,
|
| 632 |
"credit_2y_aaa": 1.8,
|
| 633 |
+
"credit_2y_aa": 2.9,
|
| 634 |
};
|
| 635 |
|
| 636 |
// 资产预期收益率区间(使用您提供的数据)
|
|
|
|
| 666 |
}
|
| 667 |
};
|
| 668 |
|
| 669 |
+
// 计算基础收益率(不含资本利得)
|
| 670 |
function calculateBaseReturn() {
|
| 671 |
let baseReturn = 0;
|
| 672 |
let leverage = 100;
|
| 673 |
|
| 674 |
if (period === 'SHORT') {
|
|
|
|
| 675 |
if (risk === 'CONSERVATIVE') {
|
|
|
|
| 676 |
baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
|
| 677 |
+
defaultReturns['3m_state_ncd'] * 0.1 +
|
| 678 |
+
defaultReturns['overnight_rate'] * 0.4;
|
| 679 |
} else if (risk === 'NEUTRAL') {
|
| 680 |
+
baseReturn = defaultReturns['7d_notice_deposit'] * 0.5 +
|
| 681 |
+
defaultReturns['3m_state_ncd'] * 0.25 +
|
|
|
|
| 682 |
defaultReturns['overnight_rate'] * 0.25;
|
| 683 |
} else { // AGGRESSIVE
|
| 684 |
+
baseReturn = defaultReturns['7d_notice_deposit'] * 0.4 +
|
| 685 |
+
defaultReturns['3m_state_ncd'] * 0.4 +
|
|
|
|
| 686 |
defaultReturns['overnight_rate'] * 0.2;
|
| 687 |
}
|
| 688 |
} else if (period === 'MEDIUM') {
|
|
|
|
| 689 |
if (risk === 'CONSERVATIVE') {
|
| 690 |
+
baseReturn = defaultReturns['gov_bond_under_1y'] * 0.5 +
|
| 691 |
+
defaultReturns['ncd_1y_state'] * 0.4 +
|
| 692 |
+
defaultReturns['credit_1y_aaa_plus'] * 0.1;
|
| 693 |
+
leverage = 100;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 694 |
} else if (risk === 'NEUTRAL') {
|
| 695 |
+
baseReturn = defaultReturns['gov_bond_under_1y'] * 0.3 +
|
| 696 |
+
defaultReturns['ncd_1y_aaa'] * 0.4 +
|
| 697 |
+
defaultReturns['credit_1y_aaa'] * 0.3;
|
| 698 |
+
leverage = 110;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 699 |
} else { // AGGRESSIVE
|
| 700 |
+
baseReturn = defaultReturns['gov_bond_under_1y'] * 0.3 +
|
|
|
|
|
|
|
|
|
|
| 701 |
defaultReturns['ncd_1y_aa'] * 0.3 +
|
| 702 |
+
defaultReturns['credit_1y_aa'] * 0.4;
|
| 703 |
+
leverage = 120;
|
| 704 |
}
|
| 705 |
+
} else { // LONG
|
| 706 |
if (risk === 'CONSERVATIVE') {
|
| 707 |
+
baseReturn = defaultReturns['gov_bond_under_2y'] * 0.5 +
|
| 708 |
+
defaultReturns['ncd_1y_state'] * 0.4 +
|
| 709 |
+
defaultReturns['credit_2y_aaa_plus'] * 0.1;
|
| 710 |
+
leverage = 100;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 711 |
} else if (risk === 'NEUTRAL') {
|
| 712 |
+
baseReturn = defaultReturns['gov_bond_under_3y'] * 0.3 +
|
| 713 |
+
defaultReturns['ncd_1y_aaa'] * 0.4 +
|
| 714 |
+
defaultReturns['credit_2y_aaa'] * 0.3;
|
| 715 |
+
leverage = 110;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 716 |
} else { // AGGRESSIVE
|
| 717 |
+
baseReturn = defaultReturns['gov_bond_under_5y'] * 0.3 +
|
|
|
|
| 718 |
defaultReturns['ncd_1y_aa'] * 0.3 +
|
| 719 |
+
defaultReturns['credit_2y_aa'] * 0.4;
|
| 720 |
+
leverage = 120;
|
| 721 |
}
|
| 722 |
}
|
| 723 |
|