1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA Fast
int
50
emaFastLen
EMA Slow
int
200
emaSlowLen
Require trend (EMA50 vs EMA200)
bool
true
useTrend
Min FVG size (points)
float
0.60
minGapPts
Expire FVG after X bars
int
200
expiryBars
Min retest depth (% of zone)
float
0.50
retestDepth
Close buffer beyond edge (pts)
float
0.20
closeBuffer
Min candle body ≥ ATR×
float
0.6
minBodyATR
Delete zone after signal
bool
true
deleteOnUse
ADX length
int
14
adxLen
Min ADX
float
20
adxMin
ATR length
int
14
atrLen
Show all 14 settings
Setting
Type
Default
Variable
ATR SMA length (for info)
int
100
atrSmaLen
Show BUY/SELL labels
bool
false
showLabels
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.
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
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
This indicator plots standard Bollinger Bands and three configurable moving averages directly on the price chart. Users can toggle the Bollinger Bands, adjust their length and multiplier, and choose between exponential or simple moving averages for fast, slow,
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
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
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