Indicator · Pine Script v6 · On the chart

Institutional Buy & Sell v9.4

by sean-ccho

A regime-first signal engine for the price chart.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,065
Settings40inputs
LicenceNone stated
Last updateyesterday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

sean-ccho on GitHub

Draws

On the price chart

Markets

Stocks

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Signal ModestringBalancedsigMode
PB · Trend Pullback (상승추세 눌림목)booltrueenPB
BO · Base Breakout (박스 돌파)booltrueenBO
EARLY · Capitulation Reversal (투매 후 반전)booltrueenEA
REV · V-Bottom Reversal (투매 후 V자 반전)booltrueenREV
S2 · Stage 2 Entry (레짐 전환 매수)stringAutos2In
Regime TimeframestringAutoregTfIn
Regime MA Length (0 = Auto)int0regLenIn
Price Band (ATR)float0.25regBand
Flat-Slope Dead-band (ATR)float0.25regDead
Steep Decline (ATR per k bars)float1.0regSteep
Swing Strength (0 = Auto)int0swLenIn
Show all 40 settings
SettingTypeDefaultVariable
BO Base Lengthint20baseLen
BO Min Relative Volumefloat1.5boRvolMin
EARLY Exhaustion Window (bars)int40exhLook
Climax Relative Volumefloat2.5climaxRvol
REV Washout RSI ≤float30.0revRsiMax
REV Higher-TF Stretch (ATR, 0 = off)float2.0revHtfMin
REV Market Washout FilterstringAutorevMktIn
REV Market Drawdown ≥ %float5.0revMktPct
Exit ModestringAutoexitModeIn
Max Initial Risk (ATR)float3.0maxRiskAtr
Chandelier Trail (ATR, Swing)float4.0trailAtrMult
T1 Target (R, Swing)float2.0t1R
Trim Size (% of position)float33.0trimPct
TOP: Close above EMA20 (ATR)float3.0blowAtr
TOP: RSI ≥float75.0blowRsi
Max Thin Bars % (last 50)float30.0maxThinPct
Min Avg Daily $ Volume (K, 0 = off)float0.0minAdvK
RS BenchmarkstringAutobenchIn
Trend Entry Market FilterstringAutomktFiltIn
Block Zombie Companies (Fundamentals)booltrueblockZombie
Macro Risk (VIX/DXY) Raises Min GradebooltrueuseMacro
Trade CoststringAutocostMode
Manual Round-trip Cost %float1.0costManual
Account Risk per Trade %float1.0riskPct
Signal LabelsbooltrueshowLabels
Warnings when Flat (▼ BREAKDOWN · ◆ TOP · ◇ BOTTOM)booltrueshowWarnings
Label SizestringSmalllabelSizeIn
Regime MAbooltrueshowRegMA
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.

Similar Pine Scripts

24 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

714AutoM8tr

by alboogycOdR
6 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8tr
4 stars

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

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Snag - Detect Bull Bear
2 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure Break & Order Block
1 stars

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

Indicator v6 SMC / ICT / price actionTrend Repaints
Updated 3 days ago · None stated GitHub repository of CHOCH-Base Indikator (RUNA logic)

Week 02

by moonyroy
1 stars

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

Indicator v6 TrendSupport & resistance
Updated 5 days ago · None stated GitHub repository of Week 02

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers