9-Lives Risk Engine
Stop-loss cutoffs, take-profit scaling, and fail-closed circuit breaker protection.
Automated Profit & Loss Milestones
| Level | Trigger | Automated Action |
|---|---|---|
Stop-Loss | -20% Drawdown | Emergency market sell to preserve capital |
TP1 (2x) | +100% Gain | Sell 50% → Recovers 100% initial capital |
TP2 (3x) | +200% Gain | Sell 50% remaining → Secures pure profit |
Trailing Stop | Dynamic Ratchet | Follows price peak & triggers on -15% pullback |
Circuit Breaker Triggers
- Liquidity Drain: Instant exit if LP drops > 25% in 5 minutes.
- Tax Manipulation: Halts trading if sell tax changes > 0%.
- RPC Network Interruption: Fails closed on any node latency.
Simulation & Risk Environment Variables
# In .env:
DRY_RUN=true # Default risk-free simulation mode (no real txs signed)
SIMULATION_BALANCE_ETH=1.0 # Simulated wallet balance in DRY_RUN mode
DEFAULT_SL_PCT=-20 # -20% Stop loss cutoff
DEFAULT_TP1_PCT=100 # +100% (2x) milestone: recovers initial principal
DEFAULT_TP2_PCT=200 # +200% (3x) milestone: secures pure profit
STRATEGY_PRESET=loosened # Screening preset: loosened | standard | custom