Indicator · Pine Script v6 · On the chart

XAUUSD 1H – FVG Buy/Sell Signals (No Boxes)

by alvinng214

This overlay indicator detects bullish and bearish fair value gaps on the price chart and stores the zones internally without drawing boxes.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code168
Settings14inputs
LicenceNone stated
Last update2 months ago5 Aug 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 1H – FVG Buy/Sell Signals (No Boxes) plots a fast and slow EMA and can require price to agree with that trend. A signal is intended after a retest of a stored zone, subject to minimum gap size, retest depth, a close beyond the zone edge, a minimum candle body versus ATR, and a minimum ADX. Zones expire after a set number of bars and can be removed after a signal. Optional buy and sell labels stay off by default. The script is named for XAUUSD on the one-hour chart.

Details

Published by

alvinng214 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Trend, Moving averages, Volatility & bands

Markets

Gold

Timeframes

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 Fastint50emaFastLen
EMA Slowint200emaSlowLen
Require trend (EMA50 vs EMA200)booltrueuseTrend
Min FVG size (points)float0.60minGapPts
Expire FVG after X barsint200expiryBars
Min retest depth (% of zone)float0.50retestDepth
Close buffer beyond edge (pts)float0.20closeBuffer
Min candle body ≥ ATR×float0.6minBodyATR
Delete zone after signalbooltruedeleteOnUse
ADX lengthint14adxLen
Min ADXfloat20adxMin
ATR lengthint14atrLen
Show all 14 settings
SettingTypeDefaultVariable
ATR SMA length (for info)int100atrSmaLen
Show BUY/SELL labelsboolfalseshowLabels
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

This technical indicator combines multiple popular analysis tools into a single price chart overlay to optimize chart space. It calculates and plots the complete Ichimoku Cloud, 50 and 200 Simple Moving Averages, and standard Bollinger Bands. Furthermore, it t

Indicator v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of Ichimoku + MAs + Bollinger + Liquidity Zone

This indicator identifies confluence patterns based on smart money concepts including liquidity grabs, break of structure, order blocks, and fair value gaps. It maintains a statistical database of past setups, logs outcomes on bar close, and calculates dynamic

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of Smart Money Concepts V3.5.5 - Confluence Learning Engine
318 stars

This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B

Indicator v5 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Multiple Moving Averages

NVDA Trend Ribbon

by longsurf-ai
277 stars

This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre

Indicator v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of NVDA Trend Ribbon

Bollinger Bands Force

by harryguiacorn
219 stars

This indicator modifies standard Bollinger Bands to measure directional trend force based on line alignment. It calculates a simple moving average basis along with upper and lower volatility bands. When all three lines move upward or downward simultaneously, i

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Force

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