SimpleGoldEA
v9 / XAUUSD M1·M5
Symbol XAUUSD
Built
A.Signal Flow
Trigger
New M1 or M5 bar closes RSI(14) and price evaluated on the most recently closed bar of each enabled timeframe
Signal types

Bounce — Mean Reversion

  • Buy when RSI crosses below 25 (or stays in zone)
  • Sell when RSI crosses above 75 (or stays in zone)
  • No trend filter — fires counter to current move
  • Label: Oversold / Overbought

Continuation — Pullback

  • Buy: RSI dips ≤ 45, then crosses above 50, with price > M5 SMA200
  • Sell: RSI rallies ≥ 55, then crosses below 50, with price < M5 SMA200
  • Trend filter required — fires with the trend
  • Label: Continuation
Gates
Position cap & spacing checks Max 3 same-direction positions across both timeframes. Buys + sells never coexist. Entries #2-3 require $5 spacing from last entry. First entry locks regime (Bounce or Continuation) until cluster closes.
Order
Market order opens with TP & SL Lot 0.01 · TP +$5 hard · SL = min(structure, ATR cap), see exits below. Telegram alert fires.
B.Stop Loss Logic
MethodStructure-based, ATR-capped
Buy SL distancemin(entry − swingLow + 0.5, 1.5×ATR)
Sell SL distancemin(swingHigh + 0.5 − entry, 1.5×ATR)
Swing lookback20 bars (on triggering TF)
Buffer past swing$0.50
ATR period14
ATR cap multiplier1.5×
Minimum SL$0.50 floor
C.Exits
Per Position
Hard TP
Closes at entry + $5 (buy) or entry − $5 (sell)
Per Position
Initial SL
Structure or ATR cap, whichever is tighter
+$2 floating
Trailing SL
Once profit ≥ $2, SL ratchets to price ∓ $0.5. Never moves backward.
+$30 cluster
Basket TP
If sum of all open EA positions ≥ $30, close everything. Wait for next signal.
D.Regime State Machine
Initial
NONE
First entry: bounce signal
BOUNCE
All positions closed
NONE
First entry: continuation signal
CONTINUATION

When the cluster's first position opens, regime locks based on the signal that fired. Subsequent entries (#2, #3) must match the locked regime — Bounce clusters can only add Bounce entries; Continuation clusters can only add Continuation entries. Regime clears when all positions close, freeing the next cluster to lock either way. This keeps each cluster's thesis internally consistent.

E.Inputs Summary
Lot per position0.01
Take Profit (per pos)$5.00
Max same-direction3
Spacing$5.00
Trail trigger$2.00
Trail distance$0.50
Basket TP$30.00
RSI period14
Bounce zones25 / 75
Continuation dip / cross≤45 → >50
Trend filterSMA200 on M5
F.Strategy Thesis

XAUUSD on M1/M5 oscillates between two regimes: extreme stretches that mean-revert (caught by Bounce) and trending pullbacks that resume (caught by Continuation).

The grid (max 3, $5 spaced) lets a deeper move scale the position. The basket TP captures sharp reversals. The structural SL caps the damage when we're wrong about the regime.

Best case: Extreme RSI flush, all 3 fill, sharp V-recovery, basket TP +$30.
Worst case: Slow trend against position, all 3 SL out, ~$6–15 loss.

Idle
A. Strategy Trading, RSI, signals, trend filter, grid
B. Telegram Alert notifications
From @BotFather. Form values transmit in JSON — use a real endpoint over HTTPS.
Negative for groups, positive for direct chats
C. Stop Loss Structure-based + ATR cap
D. Trailing Per-position trailing stop
E. Basket Exit Cluster-level take profit


      
Sample data Showing 80 simulated trades for layout preview. Upload your MT5 history to replace.
Net Profit
0 trades
Win Rate
0W / 0L
Profit Factor
avg trade —
Avg Win
best —
Avg Loss
worst —
Date Range
— days

◆ Equity Curve

α.By Signal Type
β.By Timeframe
γ.Recent Trades (last 50)
Close Time Type Tag TF Entry Exit P/L ($)