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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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 Backtest (with SL+TP) combines price surge detection, RSI overbought conditions with rollover confirmation, Bollinger Band exhaustion, and optional volume spikes alongside an EMA trend filter. When the chosen confluence threshold is met, it executes a short trade. Exits are managed dynamically using ATR-based stop loss and take profit targets.
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
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 23 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
int
2
minConf
Min confluence for STRONG
int
3
strongConf
Fire on bar close only
bool
true
fireOnClose
Avoid repeated signals (cluster)
bool
true
oneShot
ATR Length
int
14
atrLen
Stop Loss = ATR ×
float
1.5
atrSLx
Take Profit = ATR ×
float
1.0
atrTPx
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.
Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse
This strategy executes trades on gold based on a confluence of Supertrend, RSI, MACD, Bollinger Bands, and volume spikes. It enters long or short positions when trend direction aligns with momentum and price positioning relative to volatility bands, filtered b
This strategy overlays a smoothed moving average on price and combines it with Aroon, Chaikin Money Flow and a Chaikin oscillator to define long and short conditions. Relative Vigor Index and Parabolic SAR values are calculated for exits. Entries can be limite
This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line
This strategy generates trade entries by combining up to five normalized 0-100 technical indicators: Relative Strength Index (RSI with divergence detection), Stochastic RSI, Money Flow Index (MFI), Relative Volatility Index (RVI), and Average Directional Index
This overlay strategy combines a Bollinger-style band with separate ATR upper and lower envelopes and optional ADX, Volume Flow Indicator, and RSI filters. It sizes positions as a percentage of equity. Settings change band length and multiplier, ATR periods an