Skip to main content

Overview

The XAUUSD Trading Bot generates comprehensive trading signals using multi-timeframe technical analysis and AI-powered decision making through Groq’s LLM. This guide teaches you how to interpret and act on these signals.
The bot has been tested with 65% accuracy for profitable trades on real accounts. This means proper risk management is essential for long-term profitability.

Signal Components

A complete trading signal includes:

1. Trade Direction

BUY Signal: Long position (profit when price rises)
  • Enter when bullish conditions align
  • Multiple timeframes show upward momentum
  • Support levels identified below entry
SELL Signal: Short position (profit when price falls)
  • Enter when bearish conditions align
  • Multiple timeframes show downward momentum
  • Resistance levels identified above entry

2. Entry Price

The recommended price level to open the position. Characteristics:
  • Based on current market price
  • Considers order blocks and fair value gaps
  • May suggest limit orders vs market execution
Example: Entry: 2045.50 You would place a trade to enter at or near $2045.50 per ounce.

3. Stop-Loss Level

The price at which to exit if the trade goes against you. Calculation: Uses ATR (Average True Range) for dynamic stop-loss Purpose:
  • Limits maximum loss per trade
  • Based on market volatility
  • Positioned beyond recent swing highs/lows
Example:
  • BUY at 2045.50, Stop-Loss at 2040.00 = 5.50 points risk
  • SELL at 2045.50, Stop-Loss at 2051.00 = 5.50 points risk
Never trade without a stop-loss. The bot calculates stop-loss using ATR to account for XAUUSD volatility.

4. Take-Profit Target(s)

Price levels where you should consider taking profits. Types:
  • TP1: First target (partial profit taking)
  • TP2: Second target (main profit objective)
  • TP3: Extended target (if momentum continues)
Strategy:
50% position closed at TP1 (secure partial profits)
30% position closed at TP2 (main target)
20% position let run to TP3 or trailing stop
Example:
BUY at 2045.50
TP1: 2048.00 (+2.50 points)
TP2: 2051.50 (+6.00 points)
TP3: 2055.00 (+9.50 points)
Stop-Loss: 2040.00 (-5.50 points)

5. Risk-Reward Ratio

The relationship between potential profit and potential loss. Formula: (Take Profit - Entry) / (Entry - Stop Loss) Example:
Entry: 2045.50
TP2: 2051.50 (main target)
Stop-Loss: 2040.00

Risk: 5.50 points
Reward: 6.00 points
Ratio: 6.00 / 5.50 = 1.09:1
Minimum recommended: 1.5:1 or better
Only take trades with favorable risk-reward ratios. A 1:1 ratio means you need 50%+ win rate just to break even after spreads and commissions.

6. Position Sizing

Risk Management: The bot recommends 1% risk per trade Calculation:
Account Balance: $10,000
Risk per trade: 1% = $100
Stop-Loss: 5.50 points = $5.50 per micro lot

Position Size: $100 / $5.50 = 18.18 micro lots
Rounded: 18 micro lots (0.18 standard lots)
Formula:
Lot Size = (Account Balance × Risk %) / (Stop Loss in Points × Point Value)
Where XAUUSD point value ≈ $1 per point per micro lot

7. Trade Reasoning

The AI provides confluence factors supporting the signal: Technical Confluence:
  • RSI conditions (oversold/overbought)
  • EMA alignment (trend direction)
  • Support/Resistance levels
  • Order blocks
  • Fair Value Gaps (FVG)
  • Supply and demand zones
Multi-Timeframe Alignment:
  • Higher timeframes confirm overall trend
  • Lower timeframes identify precise entry
Example Reasoning:
"BUY signal based on:
- D1 uptrend confirmed by EMA alignment
- H4 forming bullish order block at 2043-2045
- H1 RSI bouncing from oversold (32)
- M30 showing bullish fair value gap
- Demand zone confluence at 2044"

Signal Quality Assessment

High-Quality Signals (Take These)

Strong Confluence:
  • 4+ timeframes aligned
  • Multiple technical indicators agree
  • Clear order blocks or FVG
  • Risk-reward ratio > 2:1
Trend Following:
  • Signal direction matches higher timeframe trend
  • D1 and H4 both bullish for BUY signals
  • D1 and H4 both bearish for SELL signals
Low Spread:
  • Current spread < 30 points
  • Optimal entry conditions

Medium-Quality Signals (Use Caution)

⚠️ Mixed Timeframes:
  • Some timeframes bullish, others bearish
  • Lower confluence
  • Consider smaller position size
⚠️ Moderate Risk-Reward:
  • Ratio between 1.5:1 and 2:1
  • Still acceptable but less margin for error

Low-Quality Signals (Skip or Wait)

Poor Confluence:
  • Only 1-2 timeframes support signal
  • Conflicting indicators
  • Risk-reward < 1.5:1
Counter-Trend:
  • Signal against D1/H4 trend
  • Higher risk of reversal
High Spread:
  • Spread > 50 points
  • Significantly reduces profitability

Technical Indicators Explained

The bot analyzes these indicators across all timeframes:

RSI (Relative Strength Index)

Range: 0-100 Interpretation:
  • > 70: Overbought (potential SELL opportunity)
  • 30-70: Neutral zone
  • < 30: Oversold (potential BUY opportunity)
Trading Strategy:
  • Buy when RSI exits oversold zone (crosses above 30)
  • Sell when RSI exits overbought zone (crosses below 70)
  • Look for divergence (price makes new high, RSI doesn’t)

EMA (Exponential Moving Average)

Purpose: Identifies trend direction Signals:
  • Bullish: Price above EMA, EMA sloping upward
  • Bearish: Price below EMA, EMA sloping downward
  • Crossovers: Fast EMA crossing slow EMA
Multi-Timeframe Use:
  • D1 EMA = overall market trend
  • H1 EMA = intraday direction
  • M15 EMA = entry timing

ATR (Average True Range)

Purpose: Measures market volatility Usage in Bot:
  • Calculates dynamic stop-loss distances
  • Higher ATR = wider stop-loss needed
  • Lower ATR = tighter stop-loss possible
Example:
ATR = 11.5 points
Stop-Loss = Entry ± (1.5 × ATR) = ±17.25 points
XAUUSD is highly volatile. ATR-based stops prevent getting stopped out by normal market noise.

Advanced Concepts

Order Blocks

Definition: Price zones where institutional traders placed large orders Characteristics:
  • Areas of consolidation before strong moves
  • Act as support (bullish OB) or resistance (bearish OB)
  • High probability reversal zones
How Bot Uses Them:
  • Identifies OB on H4 and H1 timeframes
  • Suggests entries near bullish OB for BUY
  • Suggests entries near bearish OB for SELL

Fair Value Gaps (FVG)

Definition: Imbalances in price action (gaps between candle bodies) Types:
  • Bullish FVG: Gap created during upward move (support)
  • Bearish FVG: Gap created during downward move (resistance)
Trading Strategy:
  • Price often returns to fill gaps
  • Enter when price approaches FVG in trend direction

Supply and Demand Zones

Supply Zone (Resistance):
  • Area where sellers overwhelm buyers
  • Price likely to reverse downward
  • SELL signal opportunities
Demand Zone (Support):
  • Area where buyers overwhelm sellers
  • Price likely to reverse upward
  • BUY signal opportunities
Bot Integration:
  • Identifies zones across all 6 timeframes
  • Looks for confluence (multiple zones at same level)
  • Recommends entries at demand for BUY, supply for SELL

Practical Example

Sample Signal Breakdown

🎯 TRADING SIGNAL

Direction: BUY
Entry: 2047.25
Stop-Loss: 2041.50 (-5.75 points)
TP1: 2050.00 (+2.75 points)
TP2: 2054.50 (+7.25 points)
TP3: 2059.00 (+11.75 points)

Risk-Reward (to TP2): 1.26:1

Confluence Factors:
✅ D1 in strong uptrend (price above 50 EMA)
✅ H4 bullish order block at 2045-2047
✅ H1 RSI at 38 (oversold bounce)
✅ M30 bullish FVG at 2046-2048
✅ Demand zone confluence at 2045
✅ Current spread: 22 points (low)

Position Sizing:
Account: $10,000
Risk: 1% = $100
Lot Size: 0.17 standard lots (17 micro lots)

Reasoning:
Higher timeframes confirm bullish trend. Price has
pulled back to H4 order block and M30 FVG, creating
low-risk entry opportunity. RSI oversold on H1
suggests bounce imminent. Multiple demand zones
provide support below entry.

Step-by-Step Trade Execution

1

Verify Signal Quality

Check confluence factors:
  • ✅ 5 technical confirmations
  • ✅ Multi-timeframe alignment
  • ✅ Low spread (22 points)
  • ✅ Clear support at 2045
Decision: High-quality signal, proceed
2

Calculate Position Size

Using 1% risk rule:
Account: $10,000
Risk: $100
Stop-Loss: 5.75 points
Lot Size: $100 / $5.75 = 17.4 micro lots

Use: 17 micro lots (0.17 standard lots)
3

Place Orders in MT5

  1. Open MT5 and find XAUUSD symbol
  2. Set up trade:
    • Type: Buy Limit at 2047.25 (or Market Buy if close)
    • Volume: 0.17 lots
    • Stop Loss: 2041.50
    • Take Profit: 2054.50 (TP2)
  3. Confirm spread is still low
  4. Execute trade
4

Manage Position

At TP1 (2050.00):
  • Close 50% (8.5 micro lots)
  • Move stop-loss to breakeven (2047.25)
  • Secure partial profits
At TP2 (2054.50):
  • Close 30% more (5 micro lots)
  • Move stop-loss to TP1 (2050.00)
  • Let remaining 20% run
At TP3 (2059.00) or Trailing Stop:
  • Close final 20% (3.5 micro lots)
  • Trade complete
5

Record Results

Document trade for analysis:
  • Entry/exit prices
  • Lot size and risk amount
  • Profit/loss result
  • What worked or didn’t
  • Lessons learned

Common Mistakes to Avoid

Mistake: Not setting stop-loss or moving it further away when losingRisk: Unlimited loss potential, account blowupSolution: Always use the bot’s recommended stop-loss. Accept small losses as part of trading.
Mistake: Risking more than 2% per trade, using full account on one positionRisk: One losing streak wipes out accountSolution: Stick to 1% risk per trade. With 65% win rate, this ensures long-term profitability.
Mistake: Only looking at timeframes that confirm your biasRisk: Missing important counter-trend signals, low confluence tradesSolution: Review all 6 timeframes. Skip trades without multi-timeframe alignment.
Mistake: Entering trades when spread exceeds 50 pointsRisk: Immediate 50-point loss, reduced profitabilitySolution: Check sidebar spread metric. Wait for spread below 30 points before entering.
Mistake: Taking trades with poor risk-reward (below 1.5:1)Risk: Need over 60% win rate just to break evenSolution: Only take trades with R:R above 1.5:1. Better signals often have 2:1 or higher.

Performance Expectations

Win Rate Reality

Bot Accuracy: 65% (tested on real accounts) What this means:
  • 65 out of 100 trades are profitable
  • 35 out of 100 trades are losses
  • You will have losing streaks (normal)
Required Mindset:
  • Focus on long-term results, not individual trades
  • Accept losses as cost of doing business
  • Trust the process with proper risk management

Expected Returns

With 1% Risk Per Trade:
Win Rate: 65%
Average Risk-Reward: 2:1

Winning Trades: 65 × 2% = +130%
Losing Trades: 35 × 1% = -35%
Net: +95% over 100 trades
Conservative Estimate (accounting for slippage, spreads):
  • ~70-80% return over 100 trades
  • ~7-8% monthly return (assuming 10-15 trades/month)
Past performance doesn’t guarantee future results. XAUUSD is highly volatile. Only trade with capital you can afford to lose.

Dashboard Integration

Access signals in the dashboard:
  1. Click 📈 Run New Analysis in sidebar
  2. Wait for analysis to complete
  3. Navigate to 🎯 Trading Signal tab
  4. Review all signal components
  5. Check 📊 Analysis tab for technical details
  6. Verify Current Spread in sidebar
  7. Execute trade in MT5 if signal quality is high

Next Steps

  • Practice with demo account first
  • Keep trading journal for all signals
  • Review performance monthly
  • Adjust position sizing based on results
  • Join trading communities for additional insights

Additional Resources

For deeper understanding:
  • Study order block theory (ICT concepts)
  • Learn Smart Money Concepts (SMC)
  • Practice identifying FVG on charts
  • Backtest signals on historical data
  • Understand XAUUSD fundamental drivers (USD strength, inflation, geopolitics)
The bot provides analysis and signals, but you remain the decision-maker. Combine AI signals with your own analysis and judgment for best results.

Build docs developers (and LLMs) love