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
A nested gap triggers a bullish or bearish label and a trade plan with entry, stop, partial target, main target and extended target set as percentages of price. The entry can be immediate or placed at the near edge, middle or far edge of the gap, and new signals are blocked while a trade is open. Alerts cover the signal, partial, stop and target. It also shows position size from a dollar value per point.
5-minute FVGs with nested 1-minute FVG signals
Entry spot options inside the gap
Percent-based stop, partial, main and extended targets
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show 5-min FVGs
bool
true
fvg5_show
5-min Bullish Color
color
color.new(#06b6d4, 88)
fvg5_bull_col
5-min Bearish Color
color
color.new(#f87171, 88)
fvg5_bear_col
Remove 5-min FVG When Mitigated
bool
true
fvg5_mitigated
5-min FVG Min Size (basis points)
float
0.15
fvg5_min_bp
Show 1-min Nested FVGs
bool
true
fvg1_show
1-min Bullish Color
color
color.new(#06b6d4, 72)
fvg1_bull_col
1-min Bearish Color
color
color.new(#f87171, 72)
fvg1_bear_col
1-min FVG Min Size (basis points)
float
0.15
fvg1_min_bp
1-min FVG Entry Spot
string
Immediate
fvg1_entry
Bullish Label Color
color
color.new(#06b6d4, 0)
sig_bull_col
Bearish Label Color
color
color.new(#f87171, 0)
sig_bear_col
Show all 40 settings
Setting
Type
Default
Variable
Alert on Nested FVG
bool
true
alert_on_nest
Alert on Partial/BE Hit
bool
true
alert_partial
Alert on Stop Hit
bool
true
alert_stop
Alert on Target Hit
bool
true
alert_target
Cooldown Between Signals (bars/mins)
int
30
cooldown_bars
Invalidate If Partial Hit Before Entry
bool
true
invalidate_partial
Show R/R Levels
bool
true
rr_show
Show R/R Pills (price tags)
bool
false
rr_show_pills
Show Position Size badge
bool
true
rr_show_size
R/R Label Size
string
tiny
rr_label_size
Stop Loss (% of Price)
float
0.10
rr_stop_pct
Partial Target (% of Price)
float
0.10
rr_partial_pct
Main Target (% of Price)
float
0.15
rr_target_pct
Extended Target (% of Price)
float
0.30
rr_ext_pct
Dollar Value Per Full Point
float
2.0
val_per_point
Stop Color
color
color.new(#f87171, 0)
rr_stop_col
Entry Color
color
color.new(#fbbf24, 0)
rr_entry_col
Target Color
color
color.new(#06b6d4, 0)
rr_target_col
Partial Color
color
color.new(#38bdf8, 0)
rr_partial_col
Extended Target Color
color
color.new(#fbbf24, 0)
rr_ext_col
Max Dollar Risk per Trade ($)
float
480.0
max_trade_risk_usd
Move Stop to Break-Even at Anchor/Partial
bool
true
pos_be_at_partial
Show Trade Tracker Table
bool
true
tbl_show
Table Position
string
Bottom Right
tbl_pos
Table Text Size
string
normal
tbl_size
Max Rows to Display
int
10
tbl_max_rows
Tracker Time Zone
string
Auto (Chart/Exchange)
tbl_tz_opt
Today Only
bool
true
tbl_today_only
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.
Apex Protocol v3.3 is a Smart Money Concepts trading indicator that plots order blocks, fair value gaps, BOS and MSS markers, auto Fibonacci levels, area of interest zones and external internal structures on the price chart. It supports multiple killzone sessi
This indicator tracks price action across thirty-minute cycles divided into five-minute segments on the price chart. It records the high and low of the initial fifteen minutes and generates breakout signals during the subsequent monitoring phase when price exc
This indicator tracks multi-timeframe liquidity levels from daily, 1-hour, 15-minute, and 5-minute charts on a 1-minute timeframe. It identifies liquidity sweeps where a 1-minute candle wicks through a higher-timeframe level and closes back inside, followed by
A price-chart overlay for gold that extends the earlier version of this scalping tool with stricter confirmation rules. It combines pivot market structure, liquidity sweeps, candlestick confirmation, breakout and retest logic, a higher-timeframe filter and a q
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,
An indicator that shows an adaptive True Strength Index in a separate pane while projecting signals onto the price chart. It detects the instrument type, such as gold, silver or major indices, and the timeframe to pick parameters, adapts reactivity to ATR, and