XAUUSD Smart Money Sweep StrategyThis is a custom-built Smart Money Concept (SMC) strategy for XAUUSD that detects liquidity sweeps at key swing levels and confirms entries using momentum-based reversal candles. It simulates institutional behavior by entering trades only when price grabs liquidity (stop hunts above highs or below lows), then shows strong rejection in the opposite direction.
The strategy uses precise entry logic, fixed stop loss, and a customizable risk-to-reward ratio for dynamic take-profit targeting. All trades are fully backtestable using TradingView’s built-in strategy() functions.
This approach is ideal for Smart Money traders looking to exploit price inefficiencies without relying on BOS or FVG logic.
🔑 Key Features:
Liquidity Sweep Logic: Detects price sweeping above recent highs or below recent lows, simulating stop hunts and liquidity grabs.
Candle Confirmation Filter: Confirms entry only if a strong reversal candle (momentum shift) forms after the sweep, avoiding weak entries.
Full Backtest Engine: Uses TradingView's strategy.entry() and strategy.exit() to simulate trades with real SL/TP tracking.
Custom Risk Management: Adjustable stop loss (in pips) and risk-to-reward (RR) ratio allow you to shape trade outcomes and optimize strategy performance.
Non-Repainting Logic: All entries are based on closed candles, meaning the signals never repaint and are reliable for testing and execution.
⚙️ Settings:
Setting Description
Liquidity Lookback Number of candles to look back for swing highs/lows to determine sweeps
Stop Loss (pips) Distance below/above entry where SL is placed (fixed pip SL)
Risk/Reward Ratio Multiplies SL to calculate TP (e.g., 1:2 = 2x SL as TP)
Entry Logic Requires sweep + a momentum candle (e.g., bullish close after a sweep down)
📊 How It Works:
The strategy scans recent price action using a lookback range to find the highest high and lowest low (liquidity zones).
If price sweeps above the high or below the low, this triggers a potential entry condition.
A momentum candle confirmation must follow immediately:
For long trades: bullish candle (close > open, and close > previous close)
For short trades: bearish candle (close < open, and close < previous close)
If confirmed, the strategy:
Enters the trade
Places a fixed stop loss in pips
Sets a dynamic TP using the RR ratio
All trades are logged and visualized in the Strategy Tester panel for performance review.
📌 Optimized For:
XAUUSD (Gold) on 15m, 30m, and 1H timeframes
Smart Money / ICT / Liquidity-based trading styles
Traders who prefer reversal setups after liquidity raids
Systems focused on precise execution and high-RR setups
📎 Release Notes:
v1.0 – First release featuring liquidity sweep detection, candle confirmation logic, SL/TP execution, and Strategy Tester support. Clean structure designed for real-world backtesting on volatile instruments like gold.
⚠️ Disclaimer:
This script is for educational and research purposes only. It does not constitute financial advice or signal services. Always validate strategy results with manual backtesting and apply proper risk management.
Goldprediction
SMC Liquidity Sweep + OB [Fixed]This is a Smart Money Concept (SMC) backtest-ready strategy built to identify high-probability reversal points using two key institutional principles: liquidity sweep and order block confirmation. Designed specifically for pairs like XAUUSD, this system detects where the market sweeps resting liquidity (e.g., stop hunts above recent highs or below recent lows) and looks for a clean reversal candle (order block) to confirm the trap and trigger precise entries.
Unlike BOS or FVG-based models, this version focuses purely on stop-hunt logic and clean price action to simulate institutional behavior—ideal for Smart Money and ICT-style traders who want clear, non-repainting, high-RR setups.
🔍 How the Strategy Works
Liquidity Sweep Detection
The strategy monitors the chart for price breaking above recent swing highs or below recent swing lows (based on a customizable lookback window). This acts as a trigger for a potential trap or liquidity raid.
Order Block Confirmation
After a sweep is detected, the system waits for a confirming candle — a reversal (engulfing-type) candle that acts as an order block:
For longs: a bullish candle that closes higher than the previous bearish candle’s high
For shorts: a bearish candle that closes lower than the previous bullish candle’s low
Entry & Risk Management
Once confirmation is valid, a market entry is placed:
Stop Loss (SL): A fixed pip distance below/above the entry candle
Take Profit (TP): Calculated based on a user-defined Risk-Reward Ratio (e.g., 1:2, 1:3)
Trades are managed automatically and logged into the Strategy Tester with full visibility
🔧 Strategy Parameters
Setting Description
Stop Loss (Pips) Fixed SL distance from entry to protect capital
Risk/Reward Ratio Dynamically calculates TP relative to SL (e.g., RR 2.0 = TP 2x SL)
Liquidity Lookback How many candles back to evaluate swing highs/lows for potential sweeps
Order Block Filter Validates entry only after candle confirmation post-sweep
Direction Filter Supports both long and short signals or one-sided entry filters
📈 Use Case & Optimization
This strategy works best when applied to:
XAUUSD, NAS100, BTCUSD, US30, and high-volatility pairs
Timeframes like 5m, 15m, 1H, where sweeps and reversals are more visible
Traders who follow ICT, SMC, or price action frameworks
Reversal or continuation traders looking for clean execution after liquidity grabs
Because it uses pure price action and logical candle structures, it avoids lag and repainting found in indicator-based systems.
💡 Smart Money Concept Logic Used
Liquidity Grab: Detects stop hunts above recent highs/below lows
Order Block Entry: Entry confirmed only after strong reversal candle at sweep zone
High RR Control: SL and TP customizable to reflect real trading plans
Non-Repainting Structure: All entries are based on confirmed candle closes
📊 Built-in Backtesting Features
Plots trades visually with entry arrows and signal labels
Uses strategy.entry() and strategy.exit() for full testing accuracy
Outputs full performance metrics: win rate, profit factor, drawdown, etc.
All parameters tunable from the settings panel
📎 Release Notes
v1.0
Core SMC strategy with liquidity sweep + OB entry logic
Fully backtestable with fixed SL & dynamic TP
Plots buy/sell signals visually
Optimized for metals, indices, and crypto
⚠️ Disclaimer
This TradingView script is intended for educational and research purposes only. It is not financial advice or a live signal system. Always backtest on your own charts, confirm entries with your personal analysis, and apply strict risk management.
SuperTrade ST1 StrategyOverview
The SuperTrade ST1 Strategy is a long-only trend-following strategy that combines a Supertrend indicator with a 200-period EMA filter to isolate high-probability bullish trade setups. It is designed to operate in trending markets, using volatility-based exits with a strict 1:4 Risk-to-Reward (R:R) ratio, meaning that each trade targets a profit 4× the size of its predefined risk.
This strategy is ideal for traders looking to align with medium- to long-term trends, while maintaining disciplined risk control and minimal trade frequency.
How It Works
This strategy leverages three key components:
Supertrend Indicator
A trend-following indicator based on Average True Range (ATR).
Identifies bullish/bearish trend direction by plotting a trailing stop line that moves with price volatility.
200-period Exponential Moving Average (EMA) Filter
Trades are only taken when the price is above the EMA, ensuring participation only during confirmed uptrends.
Helps filter out counter-trend entries during market pullbacks or ranges.
ATR-Based Stop Loss and Take Profit
Each trade uses the ATR to calculate volatility-adjusted exit levels.
Stop Loss: 1× ATR below entry.
Take Profit: 4× ATR above entry (1:4 R:R).
This asymmetry ensures that even with a lower win rate, the strategy can remain profitable.
Entry Conditions
A long trade is triggered when:
Supertrend flips from bearish to bullish (trend reversal).
Price closes above the Supertrend line.
Price is above the 200 EMA (bullish market bias).
Exit Logic
Once a long position is entered:
Stop loss is set 1 ATR below entry.
Take profit is set 4 ATR above entry.
The strategy automatically exits the position on either target.
Backtest Settings
This strategy is configured for realistic backtesting, including:
$10,000 account size
2% equity risk per trade
0.1% commission
1 tick slippage
These settings aim to simulate real-world conditions and avoid overly optimistic results.
How to Use
Apply the script to any timeframe, though higher timeframes (1H, 4H, Daily) often yield more reliable signals.
Works best in clearly trending markets (especially in crypto, stocks, indices).
Can be paired with alerts for live trading or analysis.
Important Notes
This version is long-only by design. No short positions are executed.
Ideal for swing traders or position traders seeking asymmetric returns.
Users can modify the ATR period, Supertrend factor, or EMA filter length based on asset behavior.