Open-source Pine scripts written for gold (XAU/USD): session and range tools, breakout and scalping strategies, and indicators tuned to gold's volatility.
An overlay for the price chart that plots a 60-period EMA, a 60-period double EMA and a 200-period EMA. It marks a buy triangle when the previous close sits above both the EMA and the double EMA, and a second triangle when the EMA crosses above the double EMA.
This indicator draws two ATR trailing stop lines on the price chart: a fast Sniper line and a slow Anchor line. A buy or sell trigger comes from the fast line flipping, and the README says it should agree with the slow line's direction. A session filter shades
GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots
Marks order block zones on the price chart for gold. A displacement candle is one whose range is at least 1.2 times ATR on above-average volume; the last opposite-colour candle before it becomes the zone. Each zone is scored on five checks such as clean body,
Identifies 3-candle price patterns that combine structural liquidity sweeps with candle breaks. In a bullish pattern, a second candle sweeps the low of an initial bearish candle before closing above its open, followed by a third candle closing above the previo
DST HMM v9 Mobile is a variant of a gold-focused hidden Markov model regime indicator, adjusted for mobile screens. It classifies the market into Sideways, Bull and Bear states using Baum-Welch retraining on a rolling window, draws a Kalman filter line with co
The Gold indicator plots the 20 SMA and 200 EMA on the price chart together with $2 proximity zones around the SMA. It generates strong long signals when price enters the zone from below, stays above the SMA and MACD histogram is positive. Strong short signals
This indicator is tuned for 30-minute micro gold futures. It computes a Keltner-style band around a Hull-type moving average and draws a coloured cloud on the price chart. A separate pane shows a smoothed mountain-style oscillator and candles, while a four-lin
This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss
A strategy intended for gold on a Renko chart with a box size of 1. It goes long when close is above its five-bar average and RSI sits between 45 and the overbought level, and short on the mirror conditions. An optional volume filter is available. Stop loss an
An indicator for intraday futures that builds an opening range for each session and marks breakout signals once price clears it by a tick buffer, with gap filtering and one signal per direction per range. A trend filter uses two moving averages and a higher ti
This strategy overlays a seven-step smart-money process on the price chart. It compares a higher-timeframe close with an EMA to shade bullish or bearish trend, then marks equal highs and lows, order blocks, fair value gaps, and changes of character. Inputs set
ICT v4-weinkya All-in-One overlays smart money concept structural elements directly on the price chart. It detects Market Structure Shifts (MSS), Breaks of Structure (BOS), Order Blocks, Fair Value Gaps (FVGs), and Buyside or Sellside Liquidity levels. Additio
The aggressive 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 in
This strategy identifies the Initial Balance (IB) high and low during a user-defined opening session and trades breakout pullbacks. Once the IB window concludes and range filters are satisfied, it enters long or short when price breaks out and retraces back to
A strategy that models an ICT-style sequence: it detects a liquidity sweep of a one-hour swing level, then waits for a market structure shift on the chart timeframe confirmed by a large displacement candle. Signals are limited to configurable London, New York
A Pine v5 indicator that works on any chart by reading the S&P 500 to gold ratio on the weekly timeframe. It compares the ratio to its 200-week simple moving average and sets a regime only after 30 consecutive weekly closes on one side. Above the average it ti
An indicator that finds supply and demand zones after a short consolidation followed by a fast ATR-scaled breakout, and draws them as boxes on the price chart. Zones can be limited to windows around the hour and half hour in UTC, and to the direction of a high
This indicator highlights key trading sessions directly on the price chart to help identify periods of high volatility. It visualizes Asian, Frankfurt, London, and New York killzones using configurable background boxes, high and low boundary lines, and pip-ran
This Pine v4 strategy trades hammer and shooting star candles on the price chart. Entry candles can be filtered by size relative to ATR and by an optional EMA, and a Fibonacci level defines how far into the candle the close must be. Stop loss is an ATR multipl
This strategy combines Smart Money Concepts (BOS and CHoCH) with moving average trend filtering and volume spikes to generate trade signals. It checks for 20 EMA and 50 EMA alignment, along with volume 20% above its 20-period SMA. Long entries require a bullis
This indicator detects and visualizes Candle Range Theory (CRT) setups directly on the price chart across defined session windows. It tracks 1-hour and 4-hour key ranges for Asian, London, and New York sessions using higher-timeframe data. The script draws hor
Indicatorv6SMC / ICT / price actionSessions & time
This strategy executes long trades when price retests the prior week's low level within a specified tolerance and closes above it. Entries are restricted to configurable UTC trading hours, excluding Mondays and late Friday sessions. Stop loss and take profit t
This indicator identifies market impulses, consolidation zones, and potential stop levels directly on the price chart. It evaluates price movement using dual ATR ratios, tight-range consolidation filters, stochastic momentum, and candle body-to-wick proportion
Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes. It filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit
Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi
This trend-following strategy tracks alignments across three simple moving averages (SMA 20, 50, and 200) on the price chart. It opens long positions when price and SMAs align in ascending order, and short positions when they align in descending order. Positio
This strategy plots on the gold price chart and combines stochastic, RSI, and three EMAs with ATR. Confirm buys and sells can require an M15 overbought or oversold rejection wick, a Fibonacci or EMA zone, and a no-chase distance from the fast EMA. Optional LSB
This strategy identifies trend alignments and Smart Money Concept (SMC) setups across major currency pairs and gold. It calculates a customized Q-Trend filter combined with higher-timeframe trend confirmation, liquidity sweep detection, swing points, and fair
Draws confluence zones and options open interest levels on the price chart from a text block pasted into a settings box. Zones are coloured by how many layers of levels overlap (two, three, or four and more), and can be limited to volume-anchored zones. Open i
An experimental gold indicator that scores several conditions before drawing a signal on the price chart: RSI levels, MACD, ADX strength, a Supertrend, an ATR volatility threshold against a baseline, and VWAP. Optional filters add a session window, a higher-ti
A Pine v5 indicator, written as the second layer of a gold-focused framework, that reads market direction from moving averages across weekly, daily, 4-hour and 1-hour data. A timeframe is bullish when price sits above 9, 21 and 50 averages in order, bearish wh
This overlay indicator plots standard deviation levels for gold. The user pastes six CME range values for the 1, 2 and 3 SD put and call sides. The script adds or subtracts them from an open price, taken automatically from a chosen timeframe or entered manuall
Gold Dominator Pro is an overlay strategy aimed at gold. It reads a higher-timeframe trend from three exponential moving averages and includes RSI, MACD, Stochastic RSI, ADX, ATR, and volume settings. Optional session, equity-curve, and maximum-drawdown guards
MTF Confluence Trend plots trend signals when conditions align across timeframes. It detects Supertrend direction flips on the chart timeframe and confirms them against a higher timeframe Supertrend. Optional filters require an ADX strength threshold and a vol
This indicator builds the Asian session high and low, then records a London break of that range on the price chart. Entries require the range to fall between minimum and maximum point limits and, when enabled, to match a higher-timeframe EMA bias. Stops sit at
DST HMM v9 XAUUSD classifies the market into hidden regimes such as Sideways, Bull and Bear using a hidden Markov model retrained on a rolling window with Baum-Welch iterations. It adds a Kalman filter line with confidence bands and an optional multi-bar Kalma
Fresh Supply & Demand Zones is a Pine Script v6 indicator that detects and plots fresh supply and demand zones on the price chart. It identifies momentum candles based on ATR period and body size threshold, then scans back for base candles to form zones. Zones
This indicator plots the Parabolic Stop and Reverse (SAR) on the price chart with customizable acceleration start, increment, and maximum values. It highlights trend reversals where the price crosses the SAR line, marking flip points with directional triangula
Kill Zone Liquidity Sweeps tracks the Asian trading session high and low prices and monitors for liquidity sweeps during the London session. When price temporarily breaches the prior Asian high or low during the London kill zone but closes back within the rang
Indicatorv5SMC / ICT / price actionSessions & time
Overlays fast, slow and trend EMAs with an optional cloud, cross triangles and volume spike markers on the price chart, and pulls spot gold, silver and a list of ASX gold and silver miners through security requests. A table summarises daily change, RSI, volume
A strategy for automated order routing that formats alert messages for a MetaTrader connector service. Inputs cover a license identifier field, symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage. Selected i
This Pine v4 indicator shows a Money Flow Index line and the directional movement indicators DI plus and DI minus in a separate pane, each with a label on the last bar. A green square at the top marks bars where DI plus is above DI minus and MFI is above 50, a
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
Trading Sessions is an overlay indicator that highlights major market trading sessions such as Tokyo, London, and New York directly on the price chart. It draws customizable session boxes along with optional open and close price lines, average session prices,
This indicator fetches and plots weekly Commitment of Traders (COT) net position data in a separate pane using TradingView's official COT library. It displays positioning breakdowns for selected futures markets under either Legacy or Financial (TFF) reporting
This strategy generates long trade entries based on an exponential moving average crossover on the main price chart. It calculates two customizable EMAs and executes a buy order when the shorter moving average crosses above the longer moving average. Rather th
This strategy trades long when an M15 bar's low comes within a tolerance of the prior week's low and the bar closes above that level. It places a fixed point stop below entry and a take-profit at a chosen R-multiple of that stop. Entries are limited to a UTC s
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.