Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/build_runtime_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
{
"tqqq_growth_income",
"global_etf_rotation",
"russell_1000_multi_factor_defensive",
"mega_cap_leader_rotation_top50_balanced",
"russell_top50_leader_rotation_aggressive",
}
)
US_DAILY_SCHEDULER = {
Expand Down Expand Up @@ -65,8 +64,7 @@
STRATEGY_SCHEDULER_PROFILES = {
"nasdaq_sp500_smart_dca": US_DCA_SCHEDULER,
"ibit_smart_dca": US_DCA_SCHEDULER,
"russell_1000_multi_factor_defensive": US_SNAPSHOT_SCHEDULER,
"mega_cap_leader_rotation_top50_balanced": US_SNAPSHOT_SCHEDULER,
"russell_top50_leader_rotation_aggressive": US_SNAPSHOT_SCHEDULER,
"hk_low_vol_dividend_quality_snapshot": HK_SNAPSHOT_SCHEDULER,
}
PLATFORM_DRY_RUN_VARIABLES = {
Expand Down
4 changes: 2 additions & 2 deletions tests/strategy_switch_worker_validation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,10 @@ globalThis.fetch = async (url) => {
targets: [
{
service: "longbridge-quant-sg-service",
strategy_profile: "mega_cap_leader_rotation_top50_balanced",
strategy_profile: "russell_top50_leader_rotation_aggressive",
runtime_target: {
platform_id: "longbridge",
strategy_profile: "mega_cap_leader_rotation_top50_balanced",
strategy_profile: "russell_top50_leader_rotation_aggressive",
account_scope: "SG",
service_name: "longbridge-quant-sg-service",
execution_mode: "live",
Expand Down
4 changes: 2 additions & 2 deletions web/strategy-switch-console/account-options.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"label": "paper",
"target_name": "paper",
"account_selector": "PAPER",
"default_strategy_profile": "mega_cap_leader_rotation_top50_balanced",
"default_strategy_profile": "russell_top50_leader_rotation_aggressive",
"supported_domains": ["us_equity", "hk_equity"]
}
],
Expand Down Expand Up @@ -80,7 +80,7 @@
"label": "default",
"target_name": "default",
"cash_currency": "USD",
"default_strategy_profile": "mega_cap_leader_rotation_top50_balanced",
"default_strategy_profile": "russell_top50_leader_rotation_aggressive",
"supported_domains": ["us_equity"]
}
]
Expand Down
13 changes: 3 additions & 10 deletions web/strategy-switch-console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,7 @@ <h2 data-i18n="summary">切换摘要</h2>
{ profile: "nasdaq_sp500_smart_dca", label: "Nasdaq 100 / S&P 500 DCA", label_en: "Nasdaq 100 / S&P 500 DCA", label_zh: "纳指100 / 标普500 定投", domain: "us_equity", runtime_enabled: true, dca_enabled: true, dca_default_mode: "fixed", dca_default_base_investment_usd: "1000" },
{ profile: "ibit_smart_dca", label: "IBIT Bitcoin ETF DCA", label_en: "IBIT Bitcoin ETF DCA", label_zh: "IBIT 比特币定投", domain: "us_equity", runtime_enabled: true, dca_enabled: true, dca_default_mode: "fixed", dca_default_base_investment_usd: "1000" },
{ profile: "global_etf_rotation", label: "Global ETF Rotation", label_en: "Global ETF Rotation", label_zh: "全球 ETF 轮动", domain: "us_equity", runtime_enabled: true },
{ 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 },
{ 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 },
{ profile: "russell_top50_leader_rotation_aggressive", label: "Russell Top50 Leader Rotation Aggressive", label_en: "Russell Top50 Leader Rotation Aggressive", label_zh: "罗素 Top50 领涨轮动(激进)", domain: "us_equity", runtime_enabled: true },
{ profile: "hk_dividend_gold_defensive_rotation", label: "HK Dividend-Gold Defensive Rotation", label_en: "HK Dividend-Gold Defensive Rotation", label_zh: "港股红利黄金防御轮动", domain: "hk_equity", runtime_enabled: true },
{ profile: "hk_global_etf_tactical_rotation", label: "HK Global ETF Tactical Rotation", label_en: "HK Global ETF Tactical Rotation", label_zh: "港股全球 ETF 战术轮动", domain: "hk_equity", runtime_enabled: true },
{ profile: "hk_low_vol_dividend_quality_snapshot", label: "HK Low-Vol Dividend Quality Snapshot", label_en: "HK Low-Vol Dividend Quality Snapshot", label_zh: "港股低波红利质量快照", domain: "hk_equity", runtime_enabled: true },
Expand All @@ -967,8 +966,7 @@ <h2 data-i18n="summary">切换摘要</h2>
nasdaq_sp500_smart_dca: { zh: "纳指100 / 标普500 定投", en: "Nasdaq 100 / S&P 500 DCA" },
ibit_smart_dca: { zh: "IBIT 比特币定投", en: "IBIT Bitcoin ETF DCA" },
global_etf_rotation: { zh: "全球 ETF 轮动", en: "Global ETF Rotation" },
russell_1000_multi_factor_defensive: { zh: "罗素 1000 多因子防御", en: "Russell 1000 Multi-Factor Defensive" },
mega_cap_leader_rotation_top50_balanced: { zh: "美股巨头 Top50 均衡轮动", en: "Mega Cap Leader Rotation Top50 Balanced" },
russell_top50_leader_rotation_aggressive: { zh: "罗素 Top50 领涨轮动(激进)", en: "Russell Top50 Leader Rotation Aggressive" },
hk_dividend_gold_defensive_rotation: { zh: "港股红利黄金防御轮动", en: "HK Dividend-Gold Defensive Rotation" },
hk_global_etf_tactical_rotation: { zh: "港股全球 ETF 战术轮动", en: "HK Global ETF Tactical Rotation" },
hk_low_vol_dividend_quality_snapshot: { zh: "港股低波红利质量快照", en: "HK Low-Vol Dividend Quality Snapshot" },
Expand All @@ -990,12 +988,7 @@ <h2 data-i18n="summary">切换摘要</h2>
maxRatio: "0.15",
allocations: { SCHD: 0.40, DGRO: 0.25, SGOV: 0.30, SPYI: 0.05 },
},
russell_1000_multi_factor_defensive: {
startUsd: 400000,
maxRatio: "0.20",
allocations: { SCHD: 0.45, DGRO: 0.30, SGOV: 0.25 },
},
mega_cap_leader_rotation_top50_balanced: {
russell_top50_leader_rotation_aggressive: {
startUsd: 300000,
maxRatio: "0.25",
allocations: { SCHD: 0.45, DGRO: 0.30, SGOV: 0.25 },
Expand Down
2 changes: 1 addition & 1 deletion web/strategy-switch-console/page_asset.js

Large diffs are not rendered by default.

16 changes: 4 additions & 12 deletions web/strategy-switch-console/strategy-profiles.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,10 @@
"runtime_enabled": true
},
{
"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
},
{
"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 均衡轮动",
"profile": "russell_top50_leader_rotation_aggressive",
"label": "Russell Top50 Leader Rotation Aggressive",
"label_en": "Russell Top50 Leader Rotation Aggressive",
"label_zh": "罗素 Top50 领涨轮动(激进)",
"domain": "us_equity",
"runtime_enabled": true
},
Expand Down
2 changes: 1 addition & 1 deletion web/strategy-switch-console/strategy_profiles_asset.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.