mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 01:14:40 +08:00
config: autopilot to 4x 5x notional at 20x leverage; short floor 0.75 -> 0.4
Two independent changes bundled: - Position sizing back to 4 positions x 5x equity notional at 20x leverage (20x total account notional, ~5% liquidation cushion) — aggressive book size by operator choice, for bigger single positions on a small account. - Forced short-coverage signal floor lowered 0.75 -> 0.4. At 0.75, a long-leaning board left every bearish candidate below the bar, so no short ever opened and the book became a one-directional long bet. 0.4 keeps genuine directional signals so the book actually hedges — which matters more, not less, at 20x.
This commit is contained in:
@@ -266,8 +266,9 @@ func (s *Server) createDefaultStrategies(userID string, lang string) error {
|
|||||||
c.RiskControl.BTCETHMaxLeverage = 20
|
c.RiskControl.BTCETHMaxLeverage = 20
|
||||||
c.RiskControl.AltcoinMaxLeverage = 20
|
c.RiskControl.AltcoinMaxLeverage = 20
|
||||||
// 5× equity notional per position: 4 positions = 20x total account
|
// 5× equity notional per position: 4 positions = 20x total account
|
||||||
// notional (full margin at 20x). Bigger single positions with room for
|
// notional (full margin, ~5% liquidation cushion). Aggressive by
|
||||||
// a balanced long/short book.
|
// operator choice — bigger single positions; the 0.4 short-signal
|
||||||
|
// floor keeps the book balanced so it is not a one-directional bet.
|
||||||
c.RiskControl.BTCETHMaxPositionValueRatio = 5.0
|
c.RiskControl.BTCETHMaxPositionValueRatio = 5.0
|
||||||
c.RiskControl.AltcoinMaxPositionValueRatio = 5.0
|
c.RiskControl.AltcoinMaxPositionValueRatio = 5.0
|
||||||
c.RiskControl.MaxMarginUsage = 1.0
|
c.RiskControl.MaxMarginUsage = 1.0
|
||||||
|
|||||||
@@ -1017,8 +1017,8 @@ func GetDefaultStrategyConfig(lang string) StrategyConfig {
|
|||||||
MaxPositions: 4, // Room for ~2 long + 2 short (CODE ENFORCED)
|
MaxPositions: 4, // Room for ~2 long + 2 short (CODE ENFORCED)
|
||||||
BTCETHMaxLeverage: 20, // BTC/ETH exchange leverage (AI guided)
|
BTCETHMaxLeverage: 20, // BTC/ETH exchange leverage (AI guided)
|
||||||
AltcoinMaxLeverage: 20, // TradeFi 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)
|
BTCETHMaxPositionValueRatio: 5.0, // Per-position notional = equity × 5; 4 positions = 20x total (full margin, ~5% liquidation cushion — aggressive by operator choice)
|
||||||
AltcoinMaxPositionValueRatio: 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, ~5% liquidation cushion — aggressive by operator choice)
|
||||||
MaxMarginUsage: 1.0, // Claw402 Autopilot intentionally uses full margin when opening
|
MaxMarginUsage: 1.0, // Claw402 Autopilot intentionally uses full margin when opening
|
||||||
MinPositionSize: 12, // Min 12 USDT per position (CODE ENFORCED)
|
MinPositionSize: 12, // Min 12 USDT per position (CODE ENFORCED)
|
||||||
MinRiskRewardRatio: 3.0, // Min 3:1 profit/loss ratio (AI guided)
|
MinRiskRewardRatio: 3.0, // Min 3:1 profit/loss ratio (AI guided)
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// forcedCoverageMinScore is the minimum absolute board z-score a candidate
|
// forcedCoverageMinScore is the minimum absolute board z-score a candidate
|
||||||
// needs before the engine will force-open it for book balance. Live trade
|
// needs before the engine will force-open it for book balance. Near-neutral
|
||||||
// history showed forced entries on near-neutral signals (|z| < 0.3) were a
|
// signals (|z| < ~0.3) proved a systematic loser, but a 0.75 floor was too
|
||||||
// systematic money loser — especially shorts — while trades on strong signals
|
// strict: in a long-leaning tape every bearish candidate scored below it, so
|
||||||
// carried the edge. Below this bar the book is simply left unbalanced.
|
// no short ever opened and the book became a one-directional long bet that
|
||||||
const forcedCoverageMinScore = 0.75
|
// drew down hard. 0.4 keeps genuine directional signals while still filtering
|
||||||
|
// pure noise, so the book can actually hedge.
|
||||||
|
const forcedCoverageMinScore = 0.4
|
||||||
|
|
||||||
// ensureLongShortCoverage tops the book up toward roughly half the
|
// ensureLongShortCoverage tops the book up toward roughly half the
|
||||||
// MaxPositions slots long and half short — but only with candidates whose
|
// MaxPositions slots long and half short — but only with candidates whose
|
||||||
|
|||||||
@@ -1392,8 +1392,8 @@ export function StrategyStudioPage() {
|
|||||||
btc_eth_max_leverage: 20,
|
btc_eth_max_leverage: 20,
|
||||||
altcoin_max_leverage: 20,
|
altcoin_max_leverage: 20,
|
||||||
// 5× equity notional per position — 4 positions = 20x total account
|
// 5× equity notional per position — 4 positions = 20x total account
|
||||||
// notional (full margin at 20x). Bigger single positions, room for
|
// notional (full margin, ~5% liquidation cushion). Aggressive by
|
||||||
// a balanced long/short book.
|
// operator choice; the 0.4 short-signal floor keeps the book balanced.
|
||||||
btc_eth_max_position_value_ratio: 5,
|
btc_eth_max_position_value_ratio: 5,
|
||||||
altcoin_max_position_value_ratio: 5,
|
altcoin_max_position_value_ratio: 5,
|
||||||
max_margin_usage: 1.0,
|
max_margin_usage: 1.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user