SD Gold HFT Scalper EA
- Experts
- Patel Dipeshkumar Ramanbhai
- Versione: 2.0
- Attivazioni: 10
The EA continuously buffers raw tick prices and timestamps in memory. It calculates the exact millisecond it took for the price to move a specified distance. It filters out toxic market noise, slow drifts, and false spikes by enforcing a strict "Time Window":
- Zero Lag: No moving averages, no RSI, no candles. Pure tick math.
- Timeframe Independent: Works exactly the same on M1, M5, or H1 because it doesn't use chart data.
- Smart Breakeven: Choose to move SL to entry, or mathematically secure half of your floating profits.
- Dynamic Trailing Stop: Trailing stop is expressed as a % of current profit, allowing winners to run infinitely while protecting gains.
- NFA/FIFO Compliant: Built-in logic to track the oldest position, making it 100% legal for US-based brokers.
- Trigger Logic: Define the pip distance and the min/max time window for the momentum burst.
- Exit Logic: Hard SL, optional TP, advanced Breakeven, and % based Trailing Stop.
- Sessions & Days: Toggle Asian, European, and American sessions. Toggle individual weekdays.
- Money Management: Auto-calculate lots based on account risk %, or use fixed manual lots.
- System: Custom comments, Magic Numbers, and manual Pip Value override for non-standard brokers.
Backtesting:
- The timeframe of trading is irrelevant
- The Expert Advisor uses every tick based on real ticks. Please backrest in "every tick based on real ticks" mode.
For better performance, run a cloud optimization for each symbol you want to trade in every tick mode. Share later!
SD Gold HFT Scalper EA Settings File's
https://www.mql5.com/en/blogs/post/770101
Option 1: "The Aggressive Runner" (Recommended for High Profit)
This setup forces a high win-rate by using a tight Breakeven, but removes the Take Profit limit entirely so winning trades can catch massive 20-50 pip scalp runs during volatile news/opens.
════════ TRIGGER LOGIC ═══════
Trigger: 10.0 (Catches fast 10-pip bursts)
Min Time Window: 3 (Must take at least 3 seconds)
Max Time Window: 10 (Must happen within 10 seconds)
════════ EXIT LOGIC ═══════
Stop Loss: 15.0 (Tight stop to keep R:R high)
Take Profit: 45 (DISABLED - Let winners run!)
Breakeven: 5.0 (Move to breakeven after 4 pips)
Breakeven Behavior: Secure Half Profits
Trailing Stop: 30.0 (Trails 30% of profit, leaves 60% to run)
Trailing Step: 1.0
════════ SESSIONS & WEEKDAYS ═══════
Trade Asian Session: false
Trade European Session: true
Trade American Session: true
Trade Mon-Fri: true
════════ MONEY MANAGEMENT ═══════
Lot Size Behavior: Auto-Calculate Lot Size
Risk Per Trade: 1.5% (Aggressive but survivable)
════════ SYSTEM SETTINGS ═══════
Slippage: 50 (CRITICAL: Must be high or broker rejects trades)
Manual Pip Value: 0.0
Option 2: "The Sniper" (Slightly Safer, Consistent Profit)
This setup waits for slightly larger, cleaner moves. It has fewer trades per day, but an incredibly high win rate because it avoids market noise.
════════ TRIGGER LOGIC ═══════
Trigger: 12.0 (Waits for a solid 12-pip push)
Min Time Window: 3 (Filters out 1-second fake spikes)
Max Time Window: 12 (Gives the move room to breathe)
════════ EXIT LOGIC ═══════
Stop Loss: 15.0
Take Profit: 20.0 (Fixed TP for steady compounding)
Breakeven: 8.0
Breakeven Behavior: Move SL to Open Price
Trailing Stop: 0.0 (Disabled - TP handles the exit)
Trailing Step: 1.0
════════ SESSIONS & WEEKDAYS ═══════
Trade Asian Session: false
Trade European Session: true
Trade American Session: true
Trade Mon-Fri: true
════════ MONEY MANAGEMENT ═══════
Lot Size Behavior: Auto-Calculate Lot Size
Risk Per Trade: 1.0%
════════ SYSTEM SETTINGS ═══════
Slippage: 40
Manual Pip Value: 0.0
- Broker: MUST use a low-spread, low-latency broker (ECN recommended). Scalping requires fast execution.
- Back testing: ONLY use "Every tick based on real ticks". Do not use "1-minute OHLC" as it generates fake ticks.
- VPS: Highly recommended for live trading to ensure millisecond tick reception.
- Symbol: Optimized for XAUUSD (Gold)
- Backtest: Al leat last 6 Months or more
- Minimum Balance: 200USD
Risk Disclaimer:
High-frequency trading involves significant risk. Performance can vary based on broker execution speeds, slippage, and spread widening. Always test on a demo account first to ensure your environment meets the latency requirements.
If you need help drafting the technical manual or refining the parameter explanations further as you get closer to launch, I'm here for it.
Good luck with the SD Gold HFT Scalper launch! May your pips be plenty and your slippage be low. 🚀

