OPEN-SOURCE SCRIPT

Gold Scalping BOS & CHoCH

1 214
This strategy is designed for scalping gold (XAU/USD) on the 3-minute timeframe, utilizing Break of Structure (BOS) and Change of Character (CHoCH) to identify high-probability trade setups. Unlike traditional SMA crossover strategies, this method focuses purely on price action and market structure shifts, allowing for early entries and better risk management.

Core Concepts:
Break of Structure (BOS) – Confirms a continuation of the trend when price breaks the last swing high (bullish) or last swing low (bearish).
Change of Character (CHoCH) – Detects possible trend reversals by identifying a shift in market momentum.
Dynamic Support & Resistance – Uses the last 10-bar highs and lows to determine adaptive stop-loss (SL) and take-profit (TP) levels.
Risk-to-Reward Ratio (1:2 RR) – Ensures trades are executed with a favorable risk/reward ratio.
Entry Conditions:
Buy Entry:

BOS (Bullish) confirmed (price breaks the previous swing high).
CHoCH (Bullish) confirms trend shift.
Price crosses back above the last swing low (confirmation of support).
Sell Entry:

BOS (Bearish) confirmed (price breaks the previous swing low).
CHoCH (Bearish) confirms trend shift.
Price crosses back below the last swing high (confirmation of resistance).
Exit Conditions:
Stop Loss (SL): Set at the most recent dynamic support (for buys) or resistance (for sells).
Take Profit (TP): 2x the risk (1:2 risk-reward ratio).
Advantages of This Strategy:
✅ No lagging indicators – Uses price action for real-time entries.
✅ High probability setups – Focuses only on strong structural breaks.
✅ Adaptive SL/TP – Uses real market structure instead of fixed values.
✅ Optimized for Scalping – Best suited for quick in-and-out trades.

Best Time to Trade:
🔹 London & New York Sessions (High volatility for gold).

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.