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
Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentages, with per-signal toggles. Version 3 adds more combination signals. It is an indicator only and does not manage trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
First Bar Only Alerts
bool
true
masterFirstBar
Aggregate Alerts
bool
true
masterAggregate
Sensitivity
int
100
SENS
Swing Length
int
10
SWING_LEN
Range Type
string
Open to Close
DISP_TYPE
Disp Std Dev Length
int
100
DISP_STD_LEN
Disp Std Dev Mult
int
5
DISP_STD_X
Return to TNT %
float
100.0
RET_TNT_PCT
Return to TNT 2.0 %
float
50.0
RET_SUPER_PCT
Sudden Change Max Bar Distance
int
3
SUDDEN_PROX
Displacement Std Dev Multiplier (DYNAMITE-only)
float
5.0
dynStdMult
✓ B2B Napalm Bull
bool
true
en_b2bBull
Show all 40 settings
Setting
Type
Default
Variable
✓ B2B Napalm Bear
bool
true
en_b2bBear
✓ RC NPM+TNT Bull
bool
true
en_rcNTBull
✓ RC NPM+TNT Bear
bool
true
en_rcNTBear
✓ FUSE Bull
bool
true
en_fuseBull
✓ FUSE Bear
bool
true
en_fuseBear
✓ CATALYST Bull
bool
true
en_catBull
✓ CATALYST Bear
bool
true
en_catBear
✓ PBJ+NPM Bull
bool
true
en_pnBull
✓ PBJ+NPM Bear
bool
true
en_pnBear
✓ PBJ+TNT Bull
bool
true
en_ptBull
✓ PBJ+TNT Bear
bool
true
en_ptBear
✓ IGNITE Bull
bool
true
en_ignBull
✓ IGNITE Bear
bool
true
en_ignBear
✓ DYNAMITE Bull
bool
true
en_dynBull
✓ DYNAMITE Bear
bool
true
en_dynBear
✓ TNT Enriched Bull
bool
true
en_t2tntBull
✓ TNT Enriched Bear
bool
true
en_t2tntBear
✓ NPM Enriched Bull
bool
true
en_t2npmBull
✓ NPM Enriched Bear
bool
true
en_t2npmBear
✓ CONT Enriched Bull
bool
true
en_t2contBull
✓ CONT Enriched Bear
bool
true
en_t2contBear
✓ RC TNT+RET Enriched Bull
bool
true
en_t2trBull
✓ RC TNT+RET Enriched Bear
bool
true
en_t2trBear
✓ RC RET+NPM Enriched Bull
bool
true
en_t2rnBull
✓ RC RET+NPM Enriched Bear
bool
true
en_t2rnBear
✓ PBJ+RET Enriched Bull
bool
true
en_t2prBull
✓ PBJ+RET Enriched Bear
bool
true
en_t2prBear
Events (X)
int
2
den1_X
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 indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It
This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r
The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me
This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c
This indicator plots intraday reference levels, projection targets, and opening range boundaries tailored for continuous electronic trading session instruments such as gold. It calculates Average Bar Range targets in bullish and bearish multiples, previous day
This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo