Indicator · Pine Script v5 · On the chart

XAUUSD Strategy - Momentum + Compact Dashboard

by aeiioaeiio

This indicator overlays XAUUSD momentum conditions on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code627
Settings40inputs
LicenceNone stated
Last update4 months ago6 Jun 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

XAUUSD Strategy - Momentum + Compact Dashboard combines stochastic and RSI thresholds with fast, slow, and trend EMAs, Fibonacci proximity, and pivot support-resistance zones. It scores wick sweeps, reclaim, continuation, volume spikes, and consecutive momentum bars, then marks early, full, and optional ready signals. Settings change oscillator periods, score weights, EMA hold rules, and an ATR-based stop buffer with a minimum reward ratio and a low-volatility filter. It does not place orders.

Details

Published by

aeiioaeiio on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Oscillators & momentum, Moving averages, Support & resistance, Screeners & dashboards

Markets

Gold

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Stoch Periodint5stoch_period
Stoch Kint3stoch_k
Stoch Dint3stoch_d
Oversoldint20oversold
Overboughtint80overbought
RSI Periodint14rsi_period
EMA Fastint20ema_fast
EMA Slowint50ema_slow
EMA Trendint200ema_trend
Fib Lookbackint50fib_lookback
Fib Tolerancefloat0.008fib_tol
SR Pivot Lookbackint20sr_lookback
Show all 40 settings
SettingTypeDefaultVariable
SR Zone Width (pip)float3.0sr_zone_width
Show SR Labelsbooltrueshow_sr_label
Min Wick Reclaim %float0.45wick_reclaim_min
Sweep+Reclaim Scoreint2sweep_score_weight
Show READY Signalbooltrueshow_ready_signal
Cont Max Body x Avgfloat0.85cont_body_max
Continuation Scoreint2cont_score_weight
Require EMA20 Holdbooltruerequire_ema_hold
Volume MA Lengthint20vol_length
Volume Spike xfloat1.5vol_mult
Full Signal Scoreint5score_full
Early Signal Scoreint4score_early
Momentum Consecutive Barsint3mom_bars
Momentum Body Multfloat1.2mom_body_mult
LSB Spam Lookbackint10lsb_spam_bars
Max LSB in Windowint3lsb_spam_max
Dead Cat Bounce Barsint3dead_cat_bars
R:R Ratiofloat1.5rr_ratio
SL Buffer pipint5sl_buf
SL Swing Lookbackint5sl_lookback
Minimum RRfloat1.2min_rr
ATR Periodint14atr_period
ATR SL Bufferfloat0.3atr_sl_mult
Use ATR Dynamic SLbooltrueuse_atr_sl
Use No Trade Filterbooltrueuse_no_trade_filter
Low ATR Filter xfloat0.75atr_flat_mult
EMA Flat Lookbackint5ema_flat_len
EMA Flat Tol ATRfloat0.15ema_flat_tol_atr
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

API Integration Examples

by danielbodnar
2 stars

This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 2 months ago · MIT GitHub repository of API Integration Examples

This overlay indicator unifies three optional alert modules on the price chart. It plots a fast and a slow exponential moving average and an optional horizontal price level. On confirmed bars only, it sends webhook-ready JSON when the fast average crosses the

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Multi-Condition Alert Manager [QuantForge]

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow
218 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers