投资组合分配
- 作者仓库星标 6,018
- 作者仓库 OctoBot
- 领域
- 人工智能
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @Drakkar-Software · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
{
"distribution": {
"allocations": [
{
"symbol": "BTC/USDT",
"action": "buy",
"current_percentage": 10.0,
"target_percentage": 18.0,
"quantity_change": 0.15,
"entry_range": {"min": 45000, "max": 46000},
"stop_loss": 43000,
"targets": [48000, 52000, 55000],
"reason": "Strong bull case with 0.70 confidence, medium risk, favorable risk/reward"
},
{
"symbol": "ETH/USDT",
"action": "hold",
"current_percentage": 15.0,
"target_percentage": 15.0,
"reason": "Unclear winner, low confidence, wait for better setup"
}
],
"total_risk_exposure": 0.65,
"cash_reserve": 0.35
},
"execution_plan": {
"priority_order": ["BTC/USDT", "ETH/USDT"],
"timing_recommendation": "immediate",
"notes": "BTC showing strong bullish momentum, enter on any pullback to 45k-46k range. Set stops below 43k. Scale out at targets."
},
"risk_summary": {
"portfolio_risk": "medium",
"max_drawdown_estimate": "12%",
"correlation_warning": "BTC and ETH highly correlated, don't oversize both"
}
}
# portfolio-distribution
## Overview
This skill provides guidance on translating risk assessments and market analyses into specific portfolio allocation decisions. Your role is to determine optimal position sizes while respecting risk management constraints.
## Instructions
### 1. Position Sizing Framework
**Base Position Size Calculation**
```
Base_Size = Portfolio_Risk_Percentage × (Account_Size / Risk_Per_Trade)
Adjusted_Size = Base_Size × Confidence_Modifier × Risk_Modifier
```
**Confidence Modifiers**
- Very high confidence (>0.85): 1.5x
- High confidence (0.70-0.85): 1.0x
- Medium confidence (0.50-0.70): 0.75x
- Low confidence (<0.50): 0.25x or skip
**Risk Modifiers** (from Risk Judge)
- Low overall risk: 1.2x
- Medium overall risk: 1.0x
- High overall risk: 0.5x
### 2. Portfolio Risk Management
**Total Exposure Limits**
- Maximum total position size: 80% of portfolio
- Single position maximum: 25% of portfolio
- Correlated positions combined: <40% of portfolio
- Reserve minimum: 20% cash for opportunities
**Diversification Rules**
- Don't concentrate >40% in one sector
- Consider correlation between positions
- Balance long and short exposure when appropriate
- Maintain liquidity for rebalancing
### 3. Action Determination
**Buy Actions**
- Bull case won with high confidence
- Current position < target allocation
- Entry zone identified with favorable risk/reward
- Liquidity adequate for execution
**Sell Actions**
- Bear case won with high confidence
- Current position > target allocation
- Stop loss hit or target reached
- Risk/reward deteriorated
**Hold Actions**
- Unclear winner or low confidence
- Current allocation within target range
- Waiting for better entry/exit
- Preserving capital for better opportunities
### 4. Execution Planning
**Priority Ordering**
- Highest conviction trades first
- Most time-sensitive opportunities
- Rebalancing underweight positions
- Taking profits on overweight positions
**Timing Recommendations**
- **Immediate**: High confidence, favorable conditions
- **Limit Order**: Medium confidence, specific entry target
- **Wait**: Low confidence or better setup expected
- **Scale In/Out**: Uncertainty about timing, reduce entry/exit risk
### 5. Trade Structuring
**Entry Strategy**
- Single entry: High confidence, clear signal
- Scaled entry: Medium confidence, want better average
- Layered limit orders: Range-bound market
- Market order: Time-sensitive, high urgency
**Exit Strategy**
- Initial stop loss: Below key support (long) or above resistance (short)
- First target: 1.5-2R (risk units)
- Second target: Major resistance/support
- Final: Trailing stop to ride trend
## Output Format
```json
{
"distribution": {
"allocations": [
{
"symbol": "BTC/USDT",
"action": "buy",
"current_percentage": 10.0,
"target_percentage": 18.0,
"quantity_change": 0.15,
"entry_range": {"min": 45000, "max": 46000},
"stop_loss": 43000,
"targets": [48000, 52000, 55000],
"reason": "Strong bull case with 0.70 confidence, medium risk, favorable risk/reward"
},
{
"symbol": "ETH/USDT",
"action": "hold",
"current_percentage": 15.0,
"target_percentage": 15.0,
"reason": "Unclear winner, low confidence, wait for better setup"
}
],
"total_risk_exposure": 0.65,
"cash_reserve": 0.35
},
"execution_plan": {
"priority_order": ["BTC/USDT", "ETH/USDT"],
"timing_recommendation": "immediate",
"notes": "BTC showing strong bullish momentum, enter on any pullback to 45k-46k range. Set stops below 43k. Scale out at targets."
},
"risk_summary": {
"portfolio_risk": "medium",
"max_drawdown_estimate": "12%",
"correlation_warning": "BTC and ETH highly correlated, don't oversize both"
}
}
```
## Best Practices
1. **Never overleverage** - Respect maximum position sizes
2. **Always define stops** - Know your exit before entry
3. **Scale positions by conviction** - Higher confidence = larger size
4. **Consider correlation** - Don't concentrate risk
5. **Maintain reserves** - Keep cash for opportunities
6. **Document decisions** - Save to /memories/distributions/ for review
7. **Review regularly** - Rebalance as conditions change
8. **Risk first, returns second** - Preserve capital above all
## Common Mistakes to Avoid
- Over-sizing on high confidence (still need risk limits)
- Ignoring correlation risk
- Taking on too many positions at once
- Forgetting to set stops
- Chasing after moves already made
- Panic selling on temporary drawdowns
- Revenge trading after losses
章节与文件索引
按说明文件中的顺序排列。
概述
1. 头寸规模框架
2. 投资组合风险管理
3. 行动决定
4. 执行计划
文件/命令 -> risk/reward · Risk/reward · entry/exit · In/Out · resistance/support · BTC/USDT · ETH/USDT · memories/distributions
内容校验值 -> ad9567c11b3b
当前原文的自动摘译,尚未人工审校。
概述
该技能为将风险评估和市场分析转化为具体的投资组合分配决策提供了指导。您的职责是确定最佳头寸规模,同时尊重风险管理约束。
1. 头寸规模框架
基本头寸大小计算置信度修正值 极高置信度 (>0.85):1.5x 高置信度 (0.70-0.85):1.0x 中等置信度 (0.50-0.70):0.75x
2. 投资组合风险管理
总风险限额 最大总头寸规模:投资组合的 80% 单一头寸最大:投资组合的 25% 相关头寸合计:< 投资组合的 40% 最低储备金:20% 的现金机会
3. 行动决定
买入行动 牛市赢得信心十足 当前仓位 < 目标分配 进入区域具有有利的风险/回报 流动性足以执行
4. 执行计划
优先顺序 最有信心的交易最先进行 对时间最敏感的机会 重新平衡减持头寸 在增持头寸上获利了结