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:
tinkle-community
2026-07-11 11:20:33 +09:00
parent 21407030ea
commit dc68884559
5 changed files with 30 additions and 28 deletions

View File

@@ -1388,13 +1388,14 @@ export function StrategyStudioPage() {
}),
risk_control: defaultRisk({
...base.ai_config?.risk_control,
max_positions: 2,
btc_eth_max_leverage: 10,
altcoin_max_leverage: 10,
// 4× equity notional per position — at 10x leverage two full
// positions use ~80% of margin (concentrated but solvent)
btc_eth_max_position_value_ratio: 4,
altcoin_max_position_value_ratio: 4,
max_positions: 4,
btc_eth_max_leverage: 20,
altcoin_max_leverage: 20,
// 5× equity notional per position — 4 positions = 20x total account
// notional (full margin at 20x). Bigger single positions, room for
// a balanced long/short book.
btc_eth_max_position_value_ratio: 5,
altcoin_max_position_value_ratio: 5,
max_margin_usage: 1.0,
min_confidence: 78,
min_risk_reward_ratio: 3,