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
Hedge Short Setup Outcome Auditor scores optional percent-surge, RSI overbought rollover, Bollinger exhaustion, volume spike, and EMA trend filters, then marks BASE or STRONG signals once a chosen confluence count is met. Signals can wait for bar close and the first bar of a cluster. An ATR multiple defines the take-profit level used to time outcomes; the stop-loss multiple is display-only. A table can summarize results.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Use % Surge condition
bool
true
useSurge
Lookback bars (e.g., 72 bars ≈ 3d on 1h)
int
72
surgeLb
Price ↑ over lookback ≥ (%)
float
10.0
surgePct
Use RSI overbought & roll-over
bool
true
useRSI
RSI Length
int
14
rsiLen
RSI Overbought Level
int
70
rsiOb
Require RSI rolling over (RSI < RSI[1])
bool
true
needRoll
Use Bollinger exhaustion filter
bool
true
useBB
BB Length
int
20
bbLen
BB StdDev Mult
float
2.0
bbMult
Exhaustion Logic
string
Touch+Re-entry
bbMode
Require volume spike
bool
false
useVol
Show all 25 settings
Setting
Type
Default
Variable
Volume SMA Length
int
20
volLen
Volume ≥ SMA ×
float
1.5
volMult
Trend Filter
string
Off
trendMode
EMA length for trend
int
200
emaLen
Min confluence for BASE (1..4)
int
2
minConf
Min confluence for STRONG (2..4)
int
3
strongConf
Fire signals on bar close only
bool
true
fireOnClose
Only first bar of a cluster (avoid repeated alerts)
bool
true
oneShot
ATR Length
int
14
atrLen
Suggested SL = ATR × (unused, for display)
float
1.5
atrSLx
TP = ATR ×
float
1.0
atrTPx
Datetime offset from UTC (hours)
int
3
tzOffsetH
Show summary table (hit rates)
bool
true
showTable
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.
Commodity Heat Reversal plots score-based mean-reversion reversal markers on the price chart for commodity futures, aimed at the four-hour timeframe. It builds separate long and short heat scores from ATR distance to a mean moving average, ATR expansion, RSI e
This overlay indicator plots a 20-period Bollinger Band envelope with a two-standard-deviation width on the price chart. It marks a long bounce when price reclaims the lower band, 14-period RSI is between 30 and 70, 14-period ADX is above 25, and Binance BTCUS
This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to
This indicator combines Bollinger Bands, RSI, Stochastic RSI, and volume spike detection to identify mean-reversion conditions during range-bound market regimes. It calculates Bollinger Band width to identify low-volatility states and triggers buy or sell sign