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
Institutional Buy & Sell v9.4 classifies the market stage with a long moving average on an automatically chosen timeframe, then looks for setups: trend pullback, base breakout, stage-two entry, and two bottom-reversal types after heavy selling. Evidence from momentum, flow, value and relative strength grades each signal. Exit modes include a trend hold or a swing mode with ATR trailing stop and partial trim. Signal mode and many thresholds are adjustable. The author states signals are confirmed at bar close.
Regime filter with pullback, breakout and reversal setups
Evidence grading from four factors
Selectable exit modes with ATR trailing stop
Conservative, balanced and aggressive signal modes
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Signal Mode
string
Balanced
sigMode
PB · Trend Pullback (상승추세 눌림목)
bool
true
enPB
BO · Base Breakout (박스 돌파)
bool
true
enBO
EARLY · Capitulation Reversal (투매 후 반전)
bool
true
enEA
REV · V-Bottom Reversal (투매 후 V자 반전)
bool
true
enREV
S2 · Stage 2 Entry (레짐 전환 매수)
string
Auto
s2In
Regime Timeframe
string
Auto
regTfIn
Regime MA Length (0 = Auto)
int
0
regLenIn
Price Band (ATR)
float
0.25
regBand
Flat-Slope Dead-band (ATR)
float
0.25
regDead
Steep Decline (ATR per k bars)
float
1.0
regSteep
Swing Strength (0 = Auto)
int
0
swLenIn
Show all 40 settings
Setting
Type
Default
Variable
BO Base Length
int
20
baseLen
BO Min Relative Volume
float
1.5
boRvolMin
EARLY Exhaustion Window (bars)
int
40
exhLook
Climax Relative Volume
float
2.5
climaxRvol
REV Washout RSI ≤
float
30.0
revRsiMax
REV Higher-TF Stretch (ATR, 0 = off)
float
2.0
revHtfMin
REV Market Washout Filter
string
Auto
revMktIn
REV Market Drawdown ≥ %
float
5.0
revMktPct
Exit Mode
string
Auto
exitModeIn
Max Initial Risk (ATR)
float
3.0
maxRiskAtr
Chandelier Trail (ATR, Swing)
float
4.0
trailAtrMult
T1 Target (R, Swing)
float
2.0
t1R
Trim Size (% of position)
float
33.0
trimPct
TOP: Close above EMA20 (ATR)
float
3.0
blowAtr
TOP: RSI ≥
float
75.0
blowRsi
Max Thin Bars % (last 50)
float
30.0
maxThinPct
Min Avg Daily $ Volume (K, 0 = off)
float
0.0
minAdvK
RS Benchmark
string
Auto
benchIn
Trend Entry Market Filter
string
Auto
mktFiltIn
Block Zombie Companies (Fundamentals)
bool
true
blockZombie
Macro Risk (VIX/DXY) Raises Min Grade
bool
true
useMacro
Trade Cost
string
Auto
costMode
Manual Round-trip Cost %
float
1.0
costManual
Account Risk per Trade %
float
1.0
riskPct
Signal Labels
bool
true
showLabels
Warnings when Flat (▼ BREAKDOWN · ◆ TOP · ◇ BOTTOM)
bool
true
showWarnings
Label Size
string
Small
labelSizeIn
Regime MA
bool
true
showRegMA
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 maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl
Snag - Detect Bull Bear is an indicator that identifies bull and bear market phases on the price chart. It uses a customizable ZigZag to detect trend reversals, tracking high and low points. The script applies Fibonacci-based rules to confirm breakout shifts b
This indicator detects market structure breaks using a configurable ZigZag length to identify swing highs and lows. It marks bullish and bearish order blocks along with breaker blocks on the price chart. Breakouts are confirmed via a Fibonacci retracement fact
This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic. It calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entrie
This indicator plots ZigZag lines on the price chart to map swing highs and lows. It detects break_high and break_low events to identify pivot points. The code supports a primary chart timeframe and optional second timeframe ZigZag with selectable modes such a