Hedge Fund Bot News Trader with AI Analysis
- Experts
- Ramazan Aslan
- Versione: 5.30
- Attivazioni: 5
═══════════════════════════════════════════════════════════════
HEDGE FUND BOT — Professional News Trader with DeepSeek AI
═══════════════════════════════════════════════════════════════
⚡ THE MOST ADVANCED AUTOMATED TRADING SYSTEM ON MQL5 MARKET ⚡
Hedge Fund Bot is a professional-grade Expert Advisor that combines
real-time news trading, DeepSeek AI market analysis, and institutional-level
risk management — all in a single, fully automated system.
Unlike simple indicator-based EAs, this bot reads breaking financial news,
analyzes market context with artificial intelligence, and executes trades
with hedge-fund precision. It is designed for traders who want a complete,
set-and-forget solution built on institutional methodology.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤖 DEEPSEEK AI INTEGRATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The bot connects to the DeepSeek AI API (the same technology powering
cutting-edge large language models) to analyze market conditions in
real time.
• Market context analysis — price action, volatility, session, momentum
• AI-powered trade direction recommendation (BUY / SELL / HOLD)
• Confidence scoring — only enters if AI confidence exceeds your threshold
• Override mode — if AI confidence > 85%, it overrides the technical signal
• Veto mode — if AI disagrees strongly, it blocks the trade
• Built-in cache system — prevents duplicate API calls, saves cost
• Rate limiter — respects DeepSeek API limits automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📰 REAL-TIME NEWS TRADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The news trading engine automatically monitors financial news feeds
and executes trades within seconds of high-impact events.
• Multi-source RSS monitoring (Reuters, ForexFactory, DailyFX)
• Intelligent keyword-to-symbol mapping:
GOLD / XAU → XAUUSD
FED / FOMC → EURUSD, XAUUSD, USDJPY
ECB → EURUSD, EURGBP
BOE → GBPUSD, EURGBP
NFP / CPI → All major pairs
• Impact classification: LOW / MEDIUM / HIGH / EXTREME
• Sentiment scoring: -1.0 (extremely bearish) to +1.0 (extremely bullish)
• EXTREME override: bypasses technical filters on major events (Fed, CPI, NFP)
• Configurable news check interval (default: every 5 minutes)
• News history stored in SQLite database for performance review
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 MULTI-TIMEFRAME SIGNAL ENGINE (MTF)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every trade is validated across four timeframes simultaneously,
eliminating false signals and improving accuracy dramatically.
Entry : M5 — precise entry timing
Confirm : M15 — confirms direction
Trend : H1 — validates macro trend
Structure: H4 — filters against major levels
Indicators used per timeframe:
✔ EMA 9 / 21 / 50 / 200 — trend alignment scoring
✔ RSI (14) — momentum and overbought/oversold
✔ MACD (12/26/9) — momentum crossover confirmation
✔ Stochastic (5/3/3) — reversal detection
✔ Bollinger Bands (20/2) — volatility breakout filter
✔ ATR (14) — dynamic SL/TP calculation
✔ ADX (14) — trend strength measurement
Minimum confidence score required before entry (configurable, default 55%)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ INSTITUTIONAL RISK MANAGEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This is where Hedge Fund Bot truly shines. Every single risk parameter
used by professional trading desks is implemented and fully configurable.
DAILY LIMITS:
• Max daily loss % — bot stops trading if hit (default 2%)
• Max daily profit % — locks in gains when target reached (default 4%)
• Max trades per symbol/day — prevents overtrading (default 5)
WEEKLY LIMITS:
• Max weekly loss % — resets Monday (default 5%)
• Max trades per symbol/week
POSITION LIMITS:
• Max concurrent open trades (default 3)
• Max total lot exposure (default 5.0 lots)
• Max total margin exposure % (default 30%)
• Max leverage per trade (default 10x)
CIRCUIT BREAKER:
• Automatically pauses trading for 1 hour if drawdown exceeds 10%
• Auto-resets after pause period expires
• Sends Telegram alert when triggered
SPREAD FILTER:
• Per-symbol spread limits (XAUUSD: 50pts, EURUSD: 15pts, etc.)
• Automatically skips entries when spread is too wide
ERROR HANDLING:
• Max consecutive error counter — stops bot if API/connection fails repeatedly
• Auto-reconnect to MT5 terminal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 3 POSITION SIZING METHODS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. FIXED RISK (recommended)
Risks a fixed % of balance per trade.
Lot size auto-calculated from ATR-based SL distance.
Example: 0.5% risk, $10,000 balance → $50 max loss per trade.
2. KELLY CRITERION
Uses historical win rate and average win/loss ratio to calculate
optimal bet size. Kelly fraction adjustable (default 0.25 = 25% Kelly).
Prevents over-betting in low edge conditions.
3. VOLATILITY-BASED
Scales position size inversely to current ATR vs historical ATR average.
Smaller lots in high volatility, larger lots in calm markets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 ATR-BASED SL/TP + TRAILING STOP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Stop Loss : entry ± (ATR × 1.5) — adapts to market volatility
• Take Profit : entry ± (ATR × 2.5) — default R:R = 1:1.67
• Trailing SL : activates after price moves 0.5% in your favor
then trails at ATR × 1.0 distance
PARTIAL CLOSE:
• Automatically closes 50% of position at 1:1 R:R
• Remaining position runs with trailing stop to maximize profit
• Configurable close percentage and trigger R:R ratio
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌍 MARKET REGIME DETECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The bot constantly monitors and classifies market conditions:
TRENDING UP — ADX > 25, price above EMA50 → only BUY signals
TRENDING DOWN — ADX > 25, price below EMA50 → only SELL signals
RANGING — ADX < 25 → both directions allowed
VOLATILE — ATR > 2× average or BB width extreme → NO TRADES
This filter alone eliminates the majority of losing trades that occur
when counter-trend positions are taken in strong trending markets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏰ SESSION FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Trade only during the most liquid and profitable sessions:
ASIAN 00:00–08:00 UTC — volatility factor 0.7x
LONDON 08:00–13:00 UTC — volatility factor 1.0x
OVERLAP 13:00–16:00 UTC — volatility factor 1.3x ⭐ Best session
NEW YORK 16:00–21:00 UTC — volatility factor 1.1x
OFF HOURS — trading disabled (configurable)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔗 CORRELATION PROTECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Prevents over-exposure to correlated instruments:
Group 1: EURUSD, GBPUSD, AUDUSD, NZDUSD (all USD pairs)
Group 2: USDJPY, USDCHF, USDCAD (inverse USD)
Group 3: XAUUSD, XAGUSD (precious metals)
Max 1 position per correlation group at any time.
Opening EURUSD BUY while GBPUSD BUY is open → BLOCKED automatically.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 TELEGRAM NOTIFICATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stay informed anywhere, anytime:
🟢 Trade opened — symbol, direction, lot, entry, SL, TP
🔴 Trade closed — reason, P&L result
🚨 Circuit breaker triggered
⚠️ License expiry warning (3 days before)
❌ Critical errors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💾 DATABASE & ANALYTICS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every trade and news signal is stored in a local SQLite database:
trades — full trade history with entry, exit, P&L, regime, session
equity_curve — balance/equity snapshots for drawdown analysis
news_items — all news signals processed, whether traded or not
correlation_matrix — historical correlation snapshots
Built-in statistics:
• Win rate, average win/loss, net P&L (configurable lookback period)
• News signal accuracy tracking
• Sharpe ratio & Sortino ratio calculation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🖥️ LIVE DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A real-time status overlay displayed directly on the MT5 chart:
╔══════════════════════════════════════╗
║ HEDGE FUND BOT [14:32:05] ║
║ 💳 License: PRO | 280 days left ║
║ 💰 Balance: $10,250.00 ║
║ 📊 Equity: $10,318.75 ║
║ 📈 Daily: +$68.75 (+0.67%) ║
║ 📉 DD: 1.2% | Max: 3.4% ║
║ 📂 Positions: 2 / 3 ║
║ 🌍 Session: OVERLAP ║
║ 🔴 Circuit: CLOSED ║
╚══════════════════════════════════════╝
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 SUPPORTED SYMBOLS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Gold : XAUUSD ⭐ (primary, optimized)
Silver : XAGUSD
Forex : EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD
Up to 3 simultaneous symbols (configurable)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETUP REQUIREMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Platform : MetaTrader 5
Broker type : Any (ECN recommended for best spreads)
Min balance : $500 recommended ($1,000+ optimal)
VPS : Strongly recommended for 24/5 operation
MT5 Permissions required:
✔ Allow Automated Trading
✔ Allow WebRequest for listed URLs:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔐 LICENSE & ACTIVATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
After purchase you will receive a license key tied to your MT5 account.
Enter it in the EA settings under "License Key". The bot verifies your
license on every startup. If the subscription expires, the bot stops
gracefully without closing open positions.
Rental options are available for traders who want to test before committing
to a full purchase.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
❓ FREQUENTLY ASKED QUESTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Q: Does the bot use martingale or grid?
A: No. Each trade is independent with fixed risk management.
No position doubling, no grid accumulation.
Q: Is a DeepSeek API key required?
A: No. AI analysis is optional. The bot works fully without it using
the MTF technical analysis engine alone.
Q: Which broker is recommended?
A: Any ECN/STP broker with tight spreads. IC Markets, Pepperstone,
or FP Markets work excellent with this EA.
Q: Does it work on a demo account?
A: Yes. Test on demo first before going live.
Q: Can I run it on a VPS?
A: Yes, and it is strongly recommended. The bot needs to run 24/5.
Q: What happens when news is EXTREME (Fed, NFP, CPI)?
A: With NEWS_EXTREME_OVERRIDE=true, the bot bypasses the technical
filters and trades purely on news sentiment and AI analysis.
This catches the biggest moves of the month.
Q: Is there a money-back guarantee?
A: Please contact the seller within 7 days of purchase if you
experience technical issues that cannot be resolved.
