Indicator · Pine Script v5 · On the chart

XAU Scalper Conservative (EMA 9/21/200 + VWAP + BOS + HTF)

by eddiebelaval

This overlay indicator evaluates trade setups on gold and intraday charts using a multi-layered filtering system.

View on GitHub

GitHub stars7on the repository
Pine versionv5runs as is
Lines of code194
Settings22inputs
LicenceNone stated
Last update3 months ago24 Jul 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

XAU Scalper Conservative (EMA 9/21/200 + VWAP + BOS + HTF) combines fast, slow, and trend EMAs with session time filters, VWAP direction, higher-timeframe trend alignment, and ADX trend strength. It tracks break of structure signals and volume spikes while requiring pullbacks to the 21 EMA. Entry confirmation options include pinbars, body engulfing patterns, or breaking previous candle extremes. Inputs allow customization of session hours, moving average lengths, volume thresholds, and minimum EMA slope.

Details

Published by

eddiebelaval on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Moving averages, Trend, SMC / ICT / price action, Sessions & time

Markets

Gold, Forex

Timeframes

M1-M5, M15-H1

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
EMA fastint9emaFastLen
EMA slowint21emaSlowLen
EMA trend (filter)int200emaTrendLen
Filter direction by VWAPbooltrueuseVWAPFilter
Enable volume filterbooltrueuseVolFilter
Volume MA lengthint50volLen
Volume spike factor (x MA)float1.4volFactor
Min ADX(14) for trendfloat15.0minAdx
Enable session filterbooltrueuseSessionFilter
Session 1 (London)session0800-1100sess1
Session 2 (NY open)session1430-1700sess2
Enable micro-structure + BOS modebooltrueuseStructure
Show all 22 settings
SettingTypeDefaultVariable
Bars after last BOS to keep biasint40bosLookback
Enable HTF filterbooltrueuseHTF
HTF timeframe (e.g., 15)timeframe15htf
HTF EMA fastint50htfFastLen
HTF EMA slowint200htfSlowLen
Pullback MUST touch EMA21booltruerequireTouch21
Candle confirmationstringprevHighBreakreclaimCandle
EMA21 slope length (bars)int6slopeLen
Min EMA21 slope (% over length)float0.03slopeMinPct
Min distance from EMA200 (%)float0.06minDist200Pct
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

3 stars

Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 1 year ago · None stated GitHub repository of BTMM Second Leg Confirmation
257 stars

Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba

Indicator v5 Moving averagesTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

Market Monitor - 15m

by chris-c-thomas
14 stars

Market Monitor - 15m is a directional bias chart overlay designed for 15-minute intraday chart analysis. It calculates a triple exponential moving average ribbon with EMA cloud shading, session VWAP with multiplier bands, prior day levels, a 30-minute opening

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Market Monitor - 15m

714AutoM8trDST

by alboogycOdR
6 stars

Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8trDST

HH-LL Buy/Sell + EMA

by vinitpatil519
5 stars

This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of HH-LL Buy/Sell + EMA

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