Commit Graph

71 Commits

Author SHA1 Message Date
薇薇安
1446bf852b feat(config): Introduce layered profit locking mechanism and manual trading adjustments
Added new configurations for a layered profit locking system, allowing for gradual profit protection at specified thresholds. Introduced manual trading options, including reduced and blocked symbol lists, to enhance trading strategy flexibility. Updated relevant backend and frontend components to reflect these changes, improving risk management and user control over trading activities.
2026-03-09 14:51:08 +08:00
薇薇安
218ab7e195 增加小时限制 2026-03-05 08:43:03 +08:00
薇薇安
0127edbc97 feat(config): Add new risk management configurations for Sunday and night trading hours
Introduced new configuration options to manage trading activities on Sundays and during night hours. This includes limits on the number of trades on Sundays, minimum signal strength requirements for Sunday trades, and restrictions on opening new positions during specified night hours. Updated relevant backend and frontend components to reflect these changes, enhancing risk control and user awareness of trading conditions.
2026-03-01 11:25:03 +08:00
薇薇安
99281395c1 fix(config_manager, api, trading_system): 添加 Algo 条件单请求超时配置
在配置管理模块中,新增了 `ALGO_ORDER_TIMEOUT_SEC` 配置项,以控制 Algo 条件单(止损/止盈)的单次请求超时,旨在应对币安接口高负载时可能出现的超时问题。同时,更新了相关模块的日志记录,提供更清晰的错误信息,确保在网络不稳定时能够有效调整超时设置。这一改动旨在增强系统的稳定性和风险控制能力。
2026-02-26 13:26:56 +08:00
薇薇安
e609d45fcd fix(config_manager, api, trading_system): 添加市场方案下的多空限制配置
在配置管理模块中,新增了 `BLOCK_SHORT_WHEN_BULL_MARKET` 和 `BLOCK_LONG_WHEN_BEAR_MARKET` 配置项,以控制在牛市和熊市中禁止开空和开多的策略。同时,更新了相关模块以支持这些新配置,确保在不同市场条件下的交易策略能够有效执行。这一改动旨在增强风险控制能力,确保交易决策与市场趋势一致。
2026-02-26 12:28:57 +08:00
薇薇安
10e6096cc1 fix(config_manager, api, database): 添加盈利保护配置项
在配置管理模块中,新增了 `PROFIT_PROTECTION_ENABLED` 和 `LOCK_PROFIT_AT_BREAKEVEN_AFTER_PCT` 配置项,以控制保本和移动止损的执行。同时,更新了数据库初始化脚本以包含这些新配置。这一改动旨在增强风险控制能力,确保在盈利时能够有效保护利润。
2026-02-26 12:07:16 +08:00
薇薇安
df2b8d6372 fix(config_manager, api, database, position_manager, user_data_stream): 增强配置管理和日志记录
在配置管理模块中,新增了 `ONLY_AUTO_TRADE_CREATES_RECORDS` 配置项,以控制自动开仓记录的写入行为。同时,在多个模块中优化了日志记录,确保在数据库操作和交易记录完善时提供更清晰的错误信息。这一改动旨在提升系统的稳定性和可维护性,确保交易策略的有效性与安全性。
2026-02-26 11:19:23 +08:00
薇薇安
f3ce4d5d11 fix(config_manager, account, trades, position_manager, risk_manager): 清理多余空行并优化代码风格
在多个模块中,移除多余的空行以提升代码可读性,并确保遵循一致的代码风格。此外,优化了部分逻辑的缩进和结构,增强了代码的整洁性和可维护性。这一改动旨在提升代码质量,确保团队协作时的代码一致性。
2026-02-25 22:22:47 +08:00
薇薇安
cddcf35481 feat(config): 添加4H趋势过滤配置以优化交易策略
在配置管理中新增 `BLOCK_SHORT_WHEN_4H_UP` 参数,允许在4H上涨时禁止开空,增强策略灵活性与风险控制。同时,更新前端组件以展示该配置,提升用户体验。此改动确保在不同市场条件下,策略能够更有效地避免逆势操作。
2026-02-22 22:51:36 +08:00
薇薇安
452e40bdf5 feat(config): 添加市场状态方案以优化交易策略
在配置管理中引入市场状态方案,允许在不同市场条件下快速切换策略(如熊市、牛市、正常、保守)。更新相关参数以自动覆盖止损、仓位和趋势过滤设置,增强策略灵活性。同时,前端组件更新以支持市场状态方案的展示与选择,提升用户体验。
2026-02-22 19:15:05 +08:00
薇薇安
2061583482 feat: 添加持仓详细监控日志开关用于问题排查
在多个配置文件中添加 POSITION_DETAILED_LOG_ENABLED 配置项,用于控制是否记录持仓监控的详细日志。
当开启时,position_manager.py 会在每次检查时记录当前价格、止损止盈价和收益率等详细信息,
便于在排查问题时观察持仓状态,平时建议关闭以减少日志噪音。
2026-02-15 22:02:51 +08:00
薇薇安
161d42c90b chore: unify TP1/TP2 config and revert TP2 to 30% 2026-02-15 17:59:53 +08:00
薇薇安
154f1fbf1d 1 2026-02-15 08:26:22 +08:00
薇薇安
78667c2604 添加全局配置项以支持同步缺失持仓和系统订单标识前缀 2026-02-14 18:56:09 +08:00
薇薇安
d97363e3d4 1 2026-02-14 01:27:47 +08:00
薇薇安
f8058083e3 1 2026-02-13 23:29:33 +08:00
薇薇安
213e31142c 1 2026-02-13 22:37:40 +08:00
薇薇安
c9f676c68a 1 2026-02-13 22:02:10 +08:00
薇薇安
01c11d62f6 1 2026-02-13 07:35:23 +08:00
薇薇安
ce54164b63 1 2026-02-13 07:22:27 +08:00
薇薇安
7379dd1f4b 用户配置优先 2026-02-12 14:21:55 +08:00
薇薇安
68f028f0fc 增加激进控制可放大仓位 2026-02-12 14:03:42 +08:00
薇薇安
0df841c93c 1 2026-02-12 13:57:19 +08:00
薇薇安
d16bb53e60 1 2026-02-09 17:29:11 +08:00
薇薇安
3609bddace 1 2026-02-06 13:22:20 +08:00
薇薇安
c4cd3e0ffa 1 2026-02-06 11:01:31 +08:00
薇薇安
411bb1d3d3 1 2026-02-06 09:18:22 +08:00
薇薇安
6e23c924b2 a 2026-01-31 09:57:11 +08:00
薇薇安
9490207537 a 2026-01-29 23:34:15 +08:00
薇薇安
e328272701 a 2026-01-29 08:55:09 +08:00
薇薇安
15394445b4 a 2026-01-28 21:53:41 +08:00
薇薇安
fb04f69965 a 2026-01-27 16:19:23 +08:00
薇薇安
9fe028d704 a 2026-01-27 10:36:56 +08:00
薇薇安
88ed3bfab4 a 2026-01-27 08:32:29 +08:00
薇薇安
9e0f180229 a 2026-01-26 22:14:35 +08:00
薇薇安
3057ce0e8b a 2026-01-26 21:00:43 +08:00
薇薇安
1eb5c618eb a 2026-01-26 20:26:21 +08:00
薇薇安
ed994e6e8e a 2026-01-26 15:50:06 +08:00
薇薇安
07d3bf4398 a 2026-01-25 16:31:37 +08:00
薇薇安
14b5acae09 a 2026-01-23 21:29:31 +08:00
薇薇安
0c489bfdee a 2026-01-23 14:59:57 +08:00
薇薇安
7a72cfb30c a 2026-01-23 13:24:01 +08:00
薇薇安
cdbb660c1d a 2026-01-23 09:36:39 +08:00
薇薇安
e5a281569c a 2026-01-22 19:30:57 +08:00
薇薇安
dc49c2717b a 2026-01-22 08:50:42 +08:00
薇薇安
5b1370a5a2 a 2026-01-21 23:44:37 +08:00
薇薇安
7fb0ed39a7 a 2026-01-20 20:59:49 +08:00
薇薇安
746c8ac25b 增加多账号的支持体系 2026-01-20 15:55:34 +08:00
薇薇安
fad6950964 a 2026-01-19 23:25:12 +08:00
薇薇安
596b2ec788 a 2026-01-18 21:16:01 +08:00