Open-source Pine scripts written for gold (XAU/USD): session and range tools, breakout and scalping strategies, and indicators tuned to gold's volatility.
This indicator implements an ICT and SMC decision engine directly on the price chart. It calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through prem
A price-chart overlay for gold that labels wait and confirmed buy and sell setups. It combines pivot market structure, liquidity sweeps, candlestick confirmation, breakout and retest logic, a higher-timeframe filter and a quality score. This version adds a no-
NFP Open Price Levels plots price levels associated with Non-Farm Payroll (NFP) news releases directly on the main price chart. The indicator draws horizontal lines and text labels at designated NFP open prices, allowing traders to track key macroeconomic even
This strategy trades XAUUSD on the one-hour chart. It builds a scaled Vortex oscillator from directional movement and flags bars that leave an upper or lower extreme with a matching candle. Entries also need ADX at or above a set minimum and a swing-pivot tren
An overlay that looks for pullbacks within an established trend using three EMAs (20, 60 and 144) that must be stacked in order and spread apart by an ATR multiple, with a rising or falling fast EMA and no recent crossover between the fast and middle lines. A
A futures strategy for 30-minute charts that fades extreme moves away from a daily-reset VWAP. It looks for price beyond a configurable number of standard deviations from VWAP, a short RSI in oversold or overbought territory, and an ADX reading below a maximum
The balanced preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected inde
This strategy executes trades based on specific days of the week. It opens a long position when the current day matches the primary day input and closes the position whenever the chart moves to a day other than the secondary day input. Settings allow traders t
This indicator tracks multi-timeframe momentum and trend direction across M1, M15, H1, and H4 horizons. It plots four 14-period RSI curves in a separate pane alongside 30, 50, and 70 reference levels. Directional bias values are calculated by comparing price t
The Ultimate Trading System is an integrated indicator that combines multiple analysis methodologies—including Pi Cycle Top, SPX/Gold ratio, Elliott Wave, and multi-source market signals—into a composite oscillator scored from 0 to 100. Plotted in a separate p
Calculates and plots the relative strength lines for major currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It evaluates cross-rate movement using data from major Forex brokers like OANDA or FOREXCOM. Users can smooth the str
This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in
This strategy trades gold on the price chart using stochastic, RSI and three EMAs, with ATR for distance filters and stops. Confirm and optional scalp legs enter long or short when M15 overbought or oversold levels, rejection wicks, Fibonacci zones and a no-ch
This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di
A grid overlay that draws horizontal lines above and below the last price at a spacing set in points, with a configurable number of levels per side and an optional middle line. Each line is labelled with the lot size that would lose a chosen risk amount if pri
An overlay indicator for a five-minute gold chart that stops with an error on any other timeframe. At 08:00 and 19:00 Singapore time on weekdays it draws a buy and a sell entry line from the prior close with fixed offsets, a fixed dollar stop, and three take p
This indicator calculates smart money concepts and market microstructure data to filter trades based on premium and discount zones, order blocks, liquidity cascades, and session phases. It draws rejection markers and market structure elements directly on the p
A price-chart overlay for gold that rebuilds the earlier scalping tool with a simpler rule set. It labels wait, pending and confirmed setups using pivot market structure, liquidity sweeps, candlestick patterns, breakout and retest logic and a higher-timeframe
This overlay plots a four-length exponential moving average ribbon and classifies trend on the price chart. It marks strong bullish when the 21-period average is above the 50 and 200 with a positive short slope, strong bearish when that stack is reversed, and
An indicator for the price chart, written with gold on a three-minute chart in mind, that looks for long and short setups. It detects regular or hidden divergences on RSI, MACD, MACD histogram, stochastic and optionally CCI, momentum and MFI, and needs a minim
The quality-first preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected
This strategy opens a long or short position on a chosen weekday when the chart hour falls inside a user-defined start and end window. With the buy toggle on, it enters long near the window start and short near the window end; turning the toggle off reverses t
Golden Pocket Zones draws fixed-height Fibonacci zones on the price chart. It reads daily highs, lows, and a 10-day average range, then centers a band on the midpoint of the 50 percent and 61.8 percent retracement of each qualifying daily candle. Lookback leng
Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and
This indicator overlays a visual order-flow dashboard on the price chart using left-aligned labels. It shows a buyer-versus-seller percentage gauge, a signed delta reading, a cumulative volume delta value, and an eight-direction momentum compass colored by bul
XAUUSD Strategy V4.17 is a Pine Script strategy that plots buy and sell signals on the gold price chart using Stochastic oscillator, RSI, EMA trend filters, Fibonacci zones, and ATR-based risk management. It supports confirm-only, confirm+scalp, or scalp-only
Simulates a portfolio of ten crypto assets, a gold-backed token and cash that is rebalanced on a fixed schedule, and plots the resulting equity curve against buy and hold in a separate pane. Target weights are 50 percent crypto, 25 percent gold and the rest ca
Overlay indicator for XAUUSD gold that draws predicted support and resistance levels at 08:00 and 19:00 SGT on the price chart along with buy and sell take-profit levels spaced by ATR multiples. It generates RSI reversal signals as triangles when the indicator
This indicator draws gold-oriented smart money concepts on the price chart: a higher-timeframe EMA bias, swing break of structure, order blocks, fair value gaps and sweeps of the previous day high and low. A signal needs bias, a sweep, a zone touch and a displ
An overlay indicator written for gold during a morning window in Philippine time. It combines a short-period RSI with fractal sweep detection, where price takes out recent fractal highs or lows, and fair value gap boxes with optional volume, ATR and trend filt
A price-chart overlay for gold that moves setups through a staged decision tree of wait, pending and confirmed states, with optional caution labels. Inputs combine pivot market structure, liquidity sweeps, candlestick patterns, breakout and retest logic and a
A strategy for range box breakouts whose header comments describe changes from an earlier version: a tighter ATR stop, a trailing profit exit that triggers later, an EMA 50 direction filter, a stricter volume filter and a higher box quality score. Orders are f
HTF Statistical Zones plots historical percentile bands around the 18:00 New York day open, plus session boxes, opening-range lines, and projected targets on the price chart. Upper and lower day zones use selectable inner and outer percentiles, with optional p
This strategy plots on the gold price chart and combines stochastic, RSI, and three EMAs with an ATR-based stop. Confirm entries can require an M15 oscillator extreme and rejection wick, plus a Fibonacci or EMA zone and a no-chase distance from the fast EMA. O
Draws trade zones from a text block pasted into a settings box, one box per zone, to the right of the last bar. Each zone shows an entry line coloured for buy or sell, a stop box, a take-profit box and a dashed second target, and zones can come from an options
An intraday indicator designed for gold that takes the high and low of one chosen hourly candle, set by an hour input, and extends them across the rest of the day as reference lines. A background tint and triangle markers show when price closes above the high
This TradingView indicator draws daily support and resistance lines for gold (XAU/USD) at 08:00 Singapore time on weekdays, based on the price action of the 5-minute candle closing at 08:00. It also plots three ATR-based take-profit levels per side, computed a
An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an
A gold strategy built on fractal sweeps, fair value gaps and a short-period RSI. It fades extended moves, using RSI overbought and oversold gates and an overextension timer, and places limit orders that cancel after a set number of bars. The stop is ATR-based
A price-chart overlay for gold that labels wait, pending and confirmed buy and sell setups, with optional caution labels. It combines pivot market structure, liquidity sweeps, candlestick patterns, breakout and retest logic and a higher-timeframe filter. Compa
This strategy calculates the 30-minute opening range between 08:30 and 09:00 AM New York time for XAUUSD. It triggers long entries when the price crosses above the opening range high during the New York session, provided the bar closes above the 200-period EMA
A box breakout strategy whose header comments describe a focus on cutting losing trades. It uses a wider ATR stop, an extra early exit when floating loss exceeds a multiple of the box height, a strict EMA 50 trend filter, a volume filter and a trailing profit
This indicator plots raw volume or dollar volume on a logarithmic or linear scale in a separate pane below the main chart. It calculates Bollinger Bands around the chosen volume series using standard deviation and selectable moving average smoothing types, inc
Calculates a confluence scoring model based on Stochastic, RSI, triple EMA alignment (20, 50, 200), Fibonacci retracements, and automated support/resistance zones. Generates trade signals when composite scores exceed early or full thresholds, supported by wick
This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty
Shows an options book as a picture on the price chart, from an export pasted into a settings box. It draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike,
XAU Scalp v2 is an indicator that calculates a composite trading score using multiple components for XAUUSD gold. It stacks four EMAs to determine trend direction and strength, overlays SuperTrend signals derived from ATR(10), adds RSI(14) momentum, detects Bo
This indicator implements an ICT and smart money concepts decision framework primarily tuned for gold and major assets. It plots order blocks, breaker blocks, liquidity pools, and premium-discount levels on the price chart. Entry conditions require strict disc
Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
Learn to Use Pine Scripts
Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.