myTestFreqAI/green_channel_config.md
zhangkun9038@dingtalk.com c188403bd3 关闭绿色通道
2025-08-18 10:42:34 +08:00

52 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 绿色通道开关配置指南
## 功能说明
绿色通道是一个特殊的交易通道当市场处于牛市趋势且持仓数量≤2个时启用使用更宽松的入场条件。
## 配置方法
### 1. 在配置文件中添加绿色通道开关
在你的 `config.json` 或相关配置文件中添加以下配置:
```json
{
"green_channel": {
"enabled": false
}
}
```
### 2. 开关状态说明
- `enabled: true` - 启用绿色通道功能
- `enabled: false` - 禁用绿色通道功能(默认)
### 3. 当前状态
- ✅ 绿色通道开关已添加到策略中
- ✅ 默认状态:关闭(`enabled: false`
- ✅ 可通过配置文件动态控制
### 4. 日志识别
启动时会在日志中看到:
```
🟢 绿色通道开关状态: 关闭
```
### 5. 影响范围
禁用绿色通道后:
- 牛市趋势下即使持仓≤2个也不会使用绿色通道的宽松条件
- 将统一使用标准趋势策略(震荡趋势策略)
- 不影响其他趋势状态下的交易逻辑
### 6. 如何启用
如需启用绿色通道,只需将配置文件中的 `enabled` 改为 `true`
```json
{
"green_channel": {
"enabled": true
}
}
```
然后重启策略即可生效。