mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 07:16:56 +08:00
feat: autopilot book to 4 positions x 5x notional at 20x leverage
Was 2 positions x ~equity×1.2 — too few holdings and no room for shorts (the 2 slots filled with the strongest signals, which were long-leaning, so the balanced candidate pool never got expressed as short trades). Now: max 4 positions, each sized at equity×5 notional, 20x leverage. Four positions × 5x = 20x total account notional = full margin at 20x — the operator's requested ceiling. This gives room for ~2 long + 2 short and bigger single positions; the existing direction-balanced candidate selection plus long/short coverage fills both sides when strong bearish signals exist. Applied across all three config sources (default template, quick-create preset, studio unified) with matching test assertions and 20x prompt copy.
This commit is contained in:
@@ -1014,11 +1014,11 @@ func GetDefaultStrategyConfig(lang string) StrategyConfig {
|
||||
PriceRankingLimit: 10,
|
||||
},
|
||||
RiskControl: RiskControlConfig{
|
||||
MaxPositions: 2, // Concentrated book: two full-size positions (CODE ENFORCED)
|
||||
BTCETHMaxLeverage: 10, // BTC/ETH exchange leverage (AI guided)
|
||||
AltcoinMaxLeverage: 10, // TradeFi exchange leverage (AI guided)
|
||||
BTCETHMaxPositionValueRatio: 4.0, // Per-position notional = equity × 4; at 10x two positions ≈ 80% margin
|
||||
AltcoinMaxPositionValueRatio: 4.0, // Per-position notional = equity × 4; at 10x two positions ≈ 80% margin
|
||||
MaxPositions: 4, // Room for ~2 long + 2 short (CODE ENFORCED)
|
||||
BTCETHMaxLeverage: 20, // BTC/ETH exchange leverage (AI guided)
|
||||
AltcoinMaxLeverage: 20, // TradeFi exchange leverage (AI guided)
|
||||
BTCETHMaxPositionValueRatio: 5.0, // Per-position notional = equity × 5; 4 positions = 20x total (full margin at 20x)
|
||||
AltcoinMaxPositionValueRatio: 5.0, // Per-position notional = equity × 5; 4 positions = 20x total (full margin at 20x)
|
||||
MaxMarginUsage: 1.0, // Claw402 Autopilot intentionally uses full margin when opening
|
||||
MinPositionSize: 12, // Min 12 USDT per position (CODE ENFORCED)
|
||||
MinRiskRewardRatio: 3.0, // Min 3:1 profit/loss ratio (AI guided)
|
||||
|
||||
Reference in New Issue
Block a user