Skip to content

Commit 0702a1c

Browse files
authored
Add IBIT strategy profile (#51)
1 parent ae6ad1f commit 0702a1c

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

tests/strategy_switch_worker_validation.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ assert.ok(indexHtml.includes('el("income-layer-mode-select").addEventListener("c
3535
assert.ok(indexHtml.includes('el("income-layer-start-usd-input").addEventListener("input"'));
3636
assert.ok(indexHtml.includes('el("income-layer-max-ratio-input").addEventListener("input"'));
3737
assert.ok(indexHtml.includes('label_zh: "纳斯达克 / 标普智能定投"'));
38+
assert.ok(indexHtml.includes('profile: "ibit_smart_dca"'));
39+
assert.ok(indexHtml.includes('IBIT 比特币 ETF 智能定投'));
3840
assert.ok(indexHtml.includes('localStrategyLabels'));
3941
assert.ok(indexHtml.includes('function strategyLabelSet('));
4042
assert.ok(indexHtml.includes("account-block"));

web/strategy-switch-console/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ <h2 data-i18n="summary">切换摘要</h2>
902902
{ profile: "tqqq_growth_income", label: "TQQQ Growth Income", label_en: "TQQQ Growth Income", label_zh: "TQQQ 增长收益", domain: "us_equity", runtime_enabled: true },
903903
{ profile: "soxl_soxx_trend_income", label: "SOXL/SOXX Semiconductor Trend Income", label_en: "SOXL/SOXX Semiconductor Trend Income", label_zh: "SOXL/SOXX 半导体趋势收益", domain: "us_equity", runtime_enabled: true },
904904
{ profile: "nasdaq_sp500_smart_dca", label: "Nasdaq/S&P 500 Smart DCA", label_en: "Nasdaq/S&P 500 Smart DCA", label_zh: "纳斯达克 / 标普智能定投", domain: "us_equity", runtime_enabled: true },
905+
{ profile: "ibit_smart_dca", label: "IBIT Smart DCA", label_en: "IBIT Smart DCA", label_zh: "IBIT 比特币 ETF 智能定投", domain: "us_equity", runtime_enabled: true },
905906
{ profile: "global_etf_rotation", label: "Global ETF Rotation", label_en: "Global ETF Rotation", label_zh: "全球 ETF 轮动", domain: "us_equity", runtime_enabled: true },
906907
{ profile: "russell_1000_multi_factor_defensive", label: "Russell 1000 Multi-Factor Defensive", label_en: "Russell 1000 Multi-Factor Defensive", label_zh: "罗素 1000 多因子防御", domain: "us_equity", runtime_enabled: true },
907908
{ profile: "mega_cap_leader_rotation_top50_balanced", label: "Mega Cap Leader Rotation Top50 Balanced", label_en: "Mega Cap Leader Rotation Top50 Balanced", label_zh: "美股巨头 Top50 均衡轮动", domain: "us_equity", runtime_enabled: true },
@@ -914,6 +915,7 @@ <h2 data-i18n="summary">切换摘要</h2>
914915
tqqq_growth_income: { zh: "TQQQ 增长收益", en: "TQQQ Growth Income" },
915916
soxl_soxx_trend_income: { zh: "SOXL/SOXX 半导体趋势收益", en: "SOXL/SOXX Semiconductor Trend Income" },
916917
nasdaq_sp500_smart_dca: { zh: "纳斯达克 / 标普智能定投", en: "Nasdaq/S&P 500 Smart DCA" },
918+
ibit_smart_dca: { zh: "IBIT 比特币 ETF 智能定投", en: "IBIT Smart DCA" },
917919
global_etf_rotation: { zh: "全球 ETF 轮动", en: "Global ETF Rotation" },
918920
russell_1000_multi_factor_defensive: { zh: "罗素 1000 多因子防御", en: "Russell 1000 Multi-Factor Defensive" },
919921
mega_cap_leader_rotation_top50_balanced: { zh: "美股巨头 Top50 均衡轮动", en: "Mega Cap Leader Rotation Top50 Balanced" },

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/strategy-switch-console/strategy-profiles.example.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
"domain": "us_equity",
2424
"runtime_enabled": true
2525
},
26+
{
27+
"profile": "ibit_smart_dca",
28+
"label": "IBIT Smart DCA",
29+
"label_en": "IBIT Smart DCA",
30+
"label_zh": "IBIT 比特币 ETF 智能定投",
31+
"domain": "us_equity",
32+
"runtime_enabled": true
33+
},
2634
{
2735
"profile": "global_etf_rotation",
2836
"label": "Global ETF Rotation",

web/strategy-switch-console/strategy_profiles_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)