Hades AI
- Sandra Wakefield

- 17 hours ago
- 7 min read
PSRC XAUUSD Institutional Gap Sweep AI v1.4
[Codenamed Hades]

Professional User Manual
1. Purpose of the AI
The PSRC XAUUSD Institutional Gap Sweep AI v1.4 is designed to identify high-quality gold trading opportunities around institutional liquidity events.
The indicator is built specifically for:
XAUUSD / Gold
5-minute execution timeframe
New York metals / macro session
Liquidity sweep and reclaim/rejection setups
It is not a generic buy/sell framework. It is a structured institutional model designed to detect when price raids liquidity and reprices to the the daily, weekly and monthly opening gap, confirms displacement, and targets higher-probability levels.
2. Core Strategy Thesis
Gold often creates high-probability intraday opportunities when price sweeps obvious liquidity before or during the New York session.
The model is based on this sequence:
1. Build pre-New-York liquidity range.
2. Wait for price to sweep pre-session or prior-session liquidity.
3. Require reclaim or rejection of the swept level.
4. Confirm with VWAP and higher-timeframe bias.
5. Target daily/weekly gap repricing levels.
6. Manage risk using structure-based stops.
The edge is not simply “buy low” or “sell high.”
The edge comes from identifying when liquidity has been taken and price fails to continue in the sweep direction.
3. Why This Is Institutional
Retail strategies usually rely on lagging indicators such as RSI, MACD, or moving average crossovers.
This model is different because it is built around liquidity, session behavior, and institutional repricing levels.

Institutional Components
1. Liquidity Sweep Logic
Institutions often need liquidity to enter or exit large positions. Obvious highs and lows attract stop orders.
The indicator tracks:
Pre-NY high
Pre-NY low
Prior reference-session high
Prior reference-session low
A valid setup begins only after one of these liquidity pools is swept.
2. Reclaim / Rejection Confirmation
A sweep alone is not enough.
The model waits for confirmation:
Bullish setup:Price sweeps liquidity below, then reclaims the swept level.
Bearish setup:Price sweeps liquidity above, then rejects back below the swept level.
This avoids blindly trading breakouts or reversals.
3. VWAP Confirmation
VWAP is used as an institutional value reference.
For longs:
Price should be above VWAP or reclaiming VWAP.
For shorts:
Price should be below VWAP or rejecting VWAP.
This helps confirm whether price is being accepted above or below session value.
4. Higher-Timeframe Alignment
The model uses higher-timeframe trend filters:
H4 EMA structure
Daily EMA structure
Balanced or Conservative bias mode
This prevents many low-quality countertrend trades.
5. Daily and Weekly Gap Targeting
The best-performing target mode is:
Legacy Gap Targets
This means the strategy uses:
Daily gap midpoint
Prior reference close
Weekly gap midpoint
Prior session liquidity
These levels act as repricing magnets after liquidity has been swept.
4. Best Asset
Primary Asset
XAUUSD
This indicator was optimized and validated for Gold Spot / U.S. Dollar.
Best symbols include:
XAUUSD
GOLD
Gold Spo
tBroker CFD gold symbols
The exact symbol name depends on the TradingView broker feed.
Assets Not Recommended
Do not use this version as-is on:
US30
USTEC
NAS100
DAX
EURUSD
GBPUSD
BTCUSD
ETHUSD
Oil
Silver
The logic was narrowed to XAUUSD after testing showed gold had the strongest edge.
Indexes and other markets require separate models.
5. Best Timeframe
Recommended Timeframe
5-minute chart
The 5-minute timeframe gives the best balance between:
signal quality
noise reduction
session structure
execution speed
reliable VWAP behavior
Acceptable Research Timeframes
3-minute: more aggressive, more noise
15-minute: cleaner, fewer trades
Avoid
1-minute: too noisy for this version
30-minute or higher: too slow for session sweep execution
Daily chart: not compatible with this model
The model requires intraday session structure, so it should not be used on daily or weekly charts.
6. Best Session
The current default session logic is built around the New York gold window.
Reference Session
08:20 – 17:00 New York time
This defines the main gold trading reference period.
Pre-New-York Range
02:00 – 08:19 New York time
This builds the liquidity range before the NY metals window.
The key levels are:
Pre-NY high
Pre-NY low
Pre-NY midpoint
Opening Range
08:20 – 08:34 New York time
The opening range defines the first institutional impulse zone.
Execution Window
08:35 – 11:00 New York time
This is the primary window where signals are allowed.
The strategy is intentionally focused on the most liquid and meaningful part of the gold session.
7. Core Entry Logic
Long Setup
A long signal requires:
1. Price sweeps below pre-session or prior-session liquidity.
2. Price reclaims the swept level.
3. Price is above VWAP or confirms bullish acceptance.
4. Higher-timeframe filter allows longs.
5. Bullish score reaches the minimum threshold.
6. Trade occurs inside the execution window.
The AI engine labels this as:
XAU_SWEEP_LONG
or, if stronger:
XAU_A_PLUS_LONG
Short Setup
A short signal requires:
1. Price sweeps above pre-session or prior-session liquidity.
2. Price rejects back below the swept level.
3. Price is below VWAP or confirms bearish acceptance.
4. Higher-timeframe filter allows shorts.
5. Bearish score reaches the minimum threshold.6. Trade occurs inside the execution window.
The indicator labels this as:
XAU_SWEEP_SHORT
or, if stronger:
XAU_A_PLUS_SHORT
8. Scoring Model
The indicator scores bullish and bearish conditions separately.
Bullish Score Factors
Bullish score increases when:
price is above weekly gap midpoint
daily gap down is rejected
low liquidity sweep is reclaimed
price is above VWAP
opening range high is broken
HTF bias allows longs
price is above daily gap midpoint
CVD proxy supports bullish pressure
Bearish Score Factors
Bearish score increases when:
price is below weekly gap midpoint
daily gap up is rejected
high liquidity sweep is rejected
price is below VWAP
opening range low is broken
HTF bias allows shorts
price is below daily gap midpoint
CVD proxy supports bearish pressure
Default Minimum Score
Minimum Setup Score: 4
This is the current optimal default.
A+ setups require:
A+ Minimum Score: 6
9. Optimal Default Settings
Use these as the baseline configuration:
Target Mode: Legacy Gap Targets
Require VWAP Confirmation: true
Require HTF Alignment: true
Require Score Dominance: false
Minimum Setup Score: 4
A+ Setup Minimum Score: 6
Require Minimum TP1 Distance: false
Move Stop To Break-Even After TP1: true
Use Break-Even Delay: false
Use Time Stop: false
Clear At Execution Window End: false
Clear At Reference Session End: true
Max Signals Per Session: 3
One Trade Per Direction Per Session: true
10. Stop Loss Logic
The stop loss is structure-based.
Long Stop
Stop = sweep low - ATR buffer
Short Stop
Stop = sweep high + ATR buffer
Default buffer:
0.25 × Entry ATR
This gives the trade room while still anchoring risk to the actual liquidity event.
11. Target Logic
The optimal target mode is:
Legacy Gap Targets
Long Targets
TP1 = Daily gap midpoint or 1R fallback
TP2 = Prior reference close or 2R fallback
TP3 = Weekly gap midpoint / prior high / 3R fallback
Short Targets
TP1 = Daily gap midpoint or 1R fallback
TP2 = Prior reference close or 2R fallback
TP3 = Weekly gap midpoint / prior low / 3R fallback
The reason this works better than simple session targets is that gold often sweeps liquidity and then reprices toward broader daily or weekly reference levels.
12. Break-Even Logic
Default:
Move Stop To Break-Even After TP1: true
Use Break-Even Delay: false
Once TP1 is reached, the stop is moved to break-even immediately.
This is currently preferred over delayed break-even because testing showed the delay did not improve expectancy.
13. Alert Setup
For best alerts, use:
Any alert() function call
This provides dynamic alert messages containing:
symbol
setup type
entry prices
top loss
TP1
TP2
TP3
bull score
bear score
The indicator also includes alertconditions for:
Unified Buy
Unified Sell
TP1 hit
TP2 hit
TP3 hit
Stop hit
Break-even event
14. Dashboard Explanation
The HUD shows the live state of the model.
Important fields:
Status
ELIGIBLE
WAIT SESSION
ACTIVE LONG
ACTIVE SHORT
LOCKED
Reason
Explains why the model is or is not ready.
Examples:
WAIT SESSION
WAIT OR
PRE RANGE
OR RANGE
NEWS LOCKA
CTIVE PLAN
ELIGIBLE
HTF Bias
Shows higher-timeframe bias:
BULLISH
BEARISH
MIXED
BLOCKED
Last Sweep
Shows the most recent liquidity event:
LOW
HIGH
NONE
A valid long usually needs a low sweep.
A valid short usually needs a high sweep.
VWAP
Shows whether current price is:
ABOVE VWAP
BELOW VWAP
N/A
15. Best Practices
1. Do Not Trade Every Signal Blindly
The indicator identifies institutional conditions, but execution still matters.
Before entering, confirm:
spread is normal
price is not directly into major news
signal candle is not excessively large
TP1 has enough room
market is not violently whipsawing
2. Use It During the Correct Session
Do not use the model during random low-liquidity hours.
Best window:
08:35 – 11:00 New York time
Avoid:
thin Asian chop
late Friday illiquidity
rollover spread expansion
major USD news without protection
3. Respect News
Gold is highly sensitive to:
CPI
PPI
NFP
FOMC
Powell speeches
ISM
PMI
GDP
jobless claims
treasury yield shocksg
eopolitical headlines
Use manual news lockout when high-impact USD news is scheduled.
4. Use Conservative Risk
Recommended live risk:
0.25% to 0.50% per trade
Avoid risking 1% or more until the strategy has been forward-tested on your broker feed.
5. Do Not Optimize Excessively
Avoid curve-fitting settings to one backtest window.
Do not over-optimize:
session times
ATR buffer
score threshold
TP logic
news filters
weekday filters
Small improvements in backtest can degrade live execution.
16. Recommended Live Trading Workflow
Before the NY session:
1. Open XAUUSD on 5m.
2. Confirm chart timezone behavior.
3. Check high-impact USD news.
4. Confirm spread is normal.
5. Keep default optimal settings.
6. Wait for execution window.
During execution window:
1. Wait for liquidity sweep.
2. Confirm VWAP alignment.
3. Confirm HTF filter.
4. Only act when alert fires.
5. Use the displayed SL and TP levels.
After entry:
1. Partial close at TP1.
2. Move SL to break-even after TP1.
3. Let TP2/TP3 manage the remaining position.
4. Do not re-enter emotionally after a loss.
17. Risk Management Rules
Recommended protection stack:
Max risk per trade: 0.25%–0.50%
Max daily/session loss: 2%
Max consecutive losses: 2
Max trades per session: 3
One trade per direction per session: true
No trading during major unscheduled volatility
If two trades lose in the same session, stop trading.
18. Limitations
This indicator does not know:
your broker’s real spread
your execution slippage
your account leverage
live order-book liquidity
true institutional order flow (just proxy measures)
official economic calendar events
The CVD component is an approximation using candle direction and tick volume. It is useful as a confirmation proxy, not as true exchange delta.
19. Recommended Validation Before Live Use
Before live execution, test:
5m XAUUSD over at least 6–12 months
slippage increased to 2–3 ticksl
ong-only performance
short-only performance
weekday performance
high-impact news days excluded
different broker feeds
forward test on demo
Minimum preferred statistics before live use:
100+ trades
profit factor above 1.50
max drawdown below 5%
positive average trade after spread/slippage
stable performance across multiple months
20. Final Trading Profile
The best current use case is:
Asset: XAUUSD
Timeframe: 5-minute
Session: New York gold window
Model: Session liquidity sweep
Confirmation: VWAP + HTF bias
Targets: Legacy daily/weekly gap repricing levels
Risk: 0.25%–0.50% per trade
Style: Intraday institutional liquidity model
This indicator is best used as a decision-support and alert system, not as a blind automation tool.



Comments