Swarms logo

Premium Content

Intellitrade Trading Framework

This agent — Intellitrade Trading Framework is premium. Purchase once to unlock the full agent forever.

Intellitrade Trading Framework

Intellitrade Trading Framework v12.3 (Fluid ATLAS) — A production-grade, AI-driven high-frequency crypto trading system orchestrated by SwarmsAI. This is NOT a single agent — it's a complete autonomous trading infrastructure featuring a 5-AI consensus engine, multi-agent swarm architecture, and real-time execution across multiple DEXs. ═══════════════════════════════════════════════ ⚙️ SYSTEM ARCHITECTURE ═══════════════════════════════════════════════ The framework operates as a daemon (24/7 background process) that runs 10-second trading cycles. Each cycle: 1. GATHERS market intelligence (prices, indicators, sentiment, liquidation data) 2. QUERIES 4 independent AI engines in parallel (OpenAI, NVIDIA, Gemini, XAI/Grok) 3. FEEDS all 4 opinions into SwarmsAI's ATLAS CEO agent for final arbitration 4. RUNS a Signal Enhancement Pipeline (Devil's Advocate, Squeeze Detection, Velocity Override, Trend Override) 5. EXECUTES trades on AsterDEX (Binance-compatible perps) and Hyperliquid DEX 6. MONITORS positions with 3% auto-profit-take and session profit targets ═══════════════════════════════════════════════ 🤖 5-AI CONSENSUS ENGINE ═══════════════════════════════════════════════ Each AI engine receives specialized market data based on its role: • OpenAI (GPT-4o-mini) — TECHNICAL: MACD, SMA stack (20/50/200), RSI, support/resistance proximity • NVIDIA (Nemotron) — TECHNICAL: Same data, different model perspective for cross-validation • Google Gemini — ORDER FLOW: Long/short ratios, open interest changes, funding rates, volume • XAI/Grok-3 — CONTRARIAN: Fear & Greed Index inverse signals, overcrowded trade detection • SwarmsAI ATLAS CEO — SYNTHESIZER: Receives all 4 AI outputs + full market context, makes final decision ATLAS CEO runs with 5 autonomous sub-agents: - TrendAnalyst: Medium-term trend and momentum specialist - RiskAssessor: Portfolio risk management and position protection - ScalpAnalyst: Rapid scalp trading specialist (activated in volatile markets) - SentimentAnalyst: Market psychology phases (activated at extreme fear/greed) - PricePredictor: Quantitative price targets and pattern recognition ═══════════════════════════════════════════════ 📊 SIGNAL ENHANCEMENT PIPELINE ═══════════════════════════════════════════════ After ATLAS makes a decision, the signal passes through 4 enhancement layers: 1. DEVIL'S ADVOCATE AGENT - Activates when consensus > 80% - Checks for overcrowded trades (L/S ratio > 75%) - Checks Fear & Greed extremes for reversal risk - Checks velocity divergence (price moving against consensus) - Applies small confidence penalty (5%) if contrarian thesis is strong 2. SQUEEZE DETECTION - Monitors long/short ratio for squeeze risk - Extreme short ratio (>80%) triggers SHORT SQUEEZE warning - Extreme long ratio (>80%) triggers LONG DUMP warning - Boosts contrarian confidence by 20% during squeeze conditions 3. VELOCITY-BASED OVERRIDES (HFT) - Calculates 5-minute price velocity - Invalidates SHORT if price pumping > 0.8% (switches to LONG) - Invalidates LONG if price dumping > 0.8% (switches to SHORT) - Boosts confidence 15% when signal aligns with momentum 4. 24-HOUR TREND OVERRIDE - Tracks 24h price trend direction - Overrides signals that fight strong trends - Force flips positions at extreme trend thresholds ═══════════════════════════════════════════════ 📍 SUPPORT/RESISTANCE TRADING SYSTEM ═══════════════════════════════════════════════ The S/R system provides critical context to ATLAS: • Dynamic S/R Levels: BTC and ETH levels with strength ratings (1-5 based on # of touches) • Trading Rules: - LONG at support → target is resistance - SHORT at resistance → target is support - Breach detection: 1%+ beyond level = confirmed breakout → flip direction - Strength weighting: 4-5 strength levels get higher confidence - Extreme Fear at Support = very strong LONG signal - Extreme Greed at Resistance = very strong SHORT signal ═══════════════════════════════════════════════ ⚡ EXECUTION ENGINE ═══════════════════════════════════════════════ PRIMARY: AsterDEX (Binance-compatible perps API) - HMAC-SHA256 signed requests - 5x leverage for moderate risk - 20% equity per trade - 3% profit auto-take with immediate re-analysis - Session target: $15/day auto-stop - Momentum flip: Close and reverse if price moves 0.5% against position - Max loss per trade: $15 SECONDARY: Hyperliquid DEX (On-chain perps) - 40x leverage frequency scalping - 4-agent swarm team (HyperScalper, LiquidFlow, VaultKeeper, ChainOracle) - 0.8% take profit / 1.5% stop loss - $20 base position = $800 notional exposure - EIP-712 signed transactions - Max 3 concurrent positions ═══════════════════════════════════════════════ 🛡️ RISK MANAGEMENT ═══════════════════════════════════════════════ • DebateWithJudge Architecture: Triple-agent adversarial risk assessment - TITAN Bull Advocate argues FOR the trade - HYDRA Bear Advocate argues AGAINST the trade - ATLAS CEO Judge renders final verdict with risk score • AgentRearrange Architecture: Dynamic role reassignment across 6 market regimes - 9 specialized agents (NEXUS for liquidations, SPECTER for arbitrage, PHOENIX for recovery) - Agents swap roles based on: Trending, Ranging, Volatile, Squeeze, Crash, Recovery regimes • PHOENIX Recovery Agent: Underwater position management - DCA timing based on support zones - Hedging recommendations - Staged exit planning for losing trades ═══════════════════════════════════════════════ 📈 MARKET DATA SOURCES ═══════════════════════════════════════════════ • Coinglass API: Long/short ratios, open interest, funding rates, liquidation data, Fear & Greed Index • FreeCrypto API: MACD histograms, SMA breakouts (20/50/200), RSI, technical analysis signals • AsterDEX API: Real-time prices, order book depth, klines, mark prices, funding rates • Hyperliquid API: On-chain order book, L2 data, fills, funding history • CoinGecko: Price fallback and market cap data • Nansen: Smart money flow tracking and whale activity ═══════════════════════════════════════════════ 🔧 SETUP & CONFIGURATION ═══════════════════════════════════════════════ REQUIRED API KEYS (set in .env file): SWARMS_API_KEY=<your-swarms-api-key> # SwarmsAI for ATLAS CEO orchestration ASTERDEX_API_KEY=<your-asterdex-api-key> # AsterDEX trading (Binance-compatible) ASTERDEX_SECRET=<your-asterdex-secret> # AsterDEX HMAC signing COINGLASS_API_KEY=<your-coinglass-key> # Market sentiment data FREECRYPTO_API_KEY=<your-freecrypto-key> # Technical analysis indicators REQUIRED AI API KEYS (stored in secrets config): OpenAI API Key — GPT-4o-mini for technical analysis NVIDIA API Key — Nemotron for cross-validation Google Gemini API Key — Order flow analysis XAI API Key — Grok-3 for contrarian signals OPTIONAL (for Hyperliquid DEX): HYPERLIQUID_PRIVATE_KEY=<your-private-key> # EVM wallet for on-chain trading INSTALLATION: 1. Clone the repository 2. cd intellitrade && yarn install 3. Copy .env.example to .env and fill in all API keys 4. Configure support/resistance levels in scripts/sr-trading-system.js 5. Adjust CONFIG object in scripts/data-driven-trader.js: - POSITION_SIZE_PCT (default 0.20 = 20% of equity) - LEVERAGE (default 5x) - BTC_MIN_CONFIDENCE / ETH_MIN_CONFIDENCE (default 0.80 = 80%) - TAKE_PROFIT_PCT (default 3.0%) - DAILY_PROFIT_TARGET (default $15) - CYCLE_INTERVAL (default 10000ms = 10 seconds) 6. Start the daemon: nohup node scripts/data-driven-trader.js >> logs/data-driven-trader.log 2>&1 & 7. Monitor: tail -f logs/data-driven-trader.log 8. Use the watchdog for 24/7 uptime: bash scripts/daemon-watchdog.sh & CONFIG OBJECT (key parameters): { BTC_ETH_ONLY: true, POSITION_SIZE_PCT: 0.20, LEVERAGE: 5, BTC_MIN_CONFIDENCE: 0.80, ETH_MIN_CONFIDENCE: 0.80, TAKE_PROFIT_PCT: 3.0, AI_COOLDOWN: 10000, CYCLE_INTERVAL: 10000, MAX_POSITIONS: 1, DAILY_PROFIT_TARGET: 15.00, HFT_MODE: true, MOMENTUM_FLIP_ENABLED: true, MOMENTUM_FLIP_PCT: 0.5, MAX_LOSS_PER_TRADE: 15, QUICK_SCALP_TARGET: 2.50 } DAEMON FILES: scripts/data-driven-trader.js — Main trading daemon (core engine) scripts/sr-trading-system.js — Support/Resistance level system scripts/risk-debate-engine.js — DebateWithJudge risk assessment scripts/agent-rearrange-engine.js — Dynamic agent role reassignment scripts/auto-swarm-builder.js — SwarmsAI API client scripts/hyperliquid-swarm.js — Hyperliquid 40x scalping team scripts/hyperliquid-client.js — Hyperliquid SDK integration scripts/coinglass-v4-client.js — Coinglass market intelligence scripts/market-regime-analyzer.js — Market regime classification scripts/daemon-watchdog.sh — 24/7 uptime watchdog lib/freecrypto.ts — Technical analysis indicators lib/asterdex.ts — AsterDEX API client lib/longshort.ts — Coinglass liquidation heatmap PERFORMANCE (30-day verified): • Realized P&L: +$1,086.45 • Win Rate: 71.9% • Core Assets: BTC, ETH • Strategy: High-frequency scalping with AI consensus • Average Trade Duration: < 30 minutes

Rating
No ratings yet
Upvotes
0
One-time payment$3.99

What you get

Full access to the agent content
Lifetime access - no recurring fees
Access to agent code and configuration