OPEN-SOURCE SCRIPT
Institutional Early Entry OB Signals

This script is an early institutional order block signal indicator for TradingView. It is designed mainly for short intraday timeframes like 1-minute, 3-minute, and 5-minute, especially for instruments such as Nifty and Bank Nifty.
The main purpose is to find a possible institutional entry area before a full move starts, then show:
EARLY BUY / EARLY SELL setup
BUY / SELL confirmed entry
Stop-loss level
Target level
Exit signal
How The Script Works
First, the script checks for a break of structure.
A bullish break of structure happens when price closes above the recent high. A bearish break of structure happens when price closes below the recent low. This helps identify where momentum may be shifting.
After a structure break, the script marks a possible order block.
For a bullish setup, it finds the last bearish candle before the bullish breakout. That candle becomes the bullish order block zone.
For a bearish setup, it finds the last bullish candle before the bearish breakdown. That candle becomes the bearish order block zone.
The script then waits for price to come back and retest that order block area. This retest is treated as a possible institutional entry zone.
Early Signal
The script gives an EARLY BUY or EARLY SELL when price enters the order block area and the basic confirmations are already supporting the trade.
This is meant to warn you before the final confirmed signal appears.
EARLY BUY = price enters bullish order block + EMA trend supports buy + RSI supports buy + volume confirms
EARLY SELL = price enters bearish order block + EMA trend supports sell + RSI supports sell + volume confirms
Confirmed Entry Signal
The script gives a confirmed BUY or SELL only after price shows rejection from the order block.
For buy trades, price should show bullish rejection by closing green or closing above the order block midpoint.
For sell trades, price should show bearish rejection by closing red or closing below the order block midpoint.
So the confirmed signal uses:
Order block retest
EMA trend direction
RSI momentum
Volume confirmation
Optional Stochastic confirmation
Rejection candle confirmation
MA Confirmation
The script uses two EMAs:
Fast EMA
Slow EMA
In Aggressive Mode, price only needs to be above the fast EMA for buy or below the fast EMA for sell.
In Balanced Mode, the fast EMA must also be above the slow EMA for buy, or below the slow EMA for sell.
In Conservative Mode, the EMA trend must be aligned, and the fast EMA must also be sloping in the trade direction.
RSI Confirmation
RSI is used to confirm momentum.
For buy trades:
RSI must be above the Buy Level
For sell trades:
RSI must be below the Sell Level
For intraday Nifty / Bank Nifty, the script uses flexible levels like:
Buy above 48
Sell below 52
This helps catch earlier entries instead of waiting for RSI to fully cross 50.
Volume Confirmation
Volume is used to confirm participation.
The script compares current volume with the average volume.
Example:
Current volume > Volume MA x Volume Multiplier
If volume is stronger than normal, the signal is considered more valid.
For 1-minute and 3-minute trading, a low multiplier like 1.0 to 1.05 helps avoid missing too many trades.
Stochastic Confirmation
Stochastic is optional.
By default, it is better to keep it OFF for 1-minute and 3-minute charts because it can delay signals and cause missed opportunities.
If turned ON, it adds one more momentum confirmation.
Stop Loss
For a buy trade, stop loss is placed below the bullish order block with an ATR buffer.
For a sell trade, stop loss is placed above the bearish order block with an ATR buffer.
This gives the trade some breathing room based on market volatility.
Target
The target is calculated using your selected risk-reward ratio.
Example:
Risk Reward: 2.0
If your stop loss risk is 20 points, target will be 40 points.
For Bank Nifty, you can test:
Risk Reward: 2.0 or 2.5
Exit Signal
The script shows an EXIT signal when either:
Target is reached
or
Stop loss is reached
Best Use
This indicator is best used when the market has direction and momentum. It works better during active intraday sessions, especially after a breakout and pullback.
It may give weaker signals during sideways or low-volume markets.
In simple words: this script tries to find where institutions may have entered after a structure break, waits for price to return to that area, checks trend, momentum and volume, then gives early and confirmed buy/sell signals with stop loss and target.
The main purpose is to find a possible institutional entry area before a full move starts, then show:
EARLY BUY / EARLY SELL setup
BUY / SELL confirmed entry
Stop-loss level
Target level
Exit signal
How The Script Works
First, the script checks for a break of structure.
A bullish break of structure happens when price closes above the recent high. A bearish break of structure happens when price closes below the recent low. This helps identify where momentum may be shifting.
After a structure break, the script marks a possible order block.
For a bullish setup, it finds the last bearish candle before the bullish breakout. That candle becomes the bullish order block zone.
For a bearish setup, it finds the last bullish candle before the bearish breakdown. That candle becomes the bearish order block zone.
The script then waits for price to come back and retest that order block area. This retest is treated as a possible institutional entry zone.
Early Signal
The script gives an EARLY BUY or EARLY SELL when price enters the order block area and the basic confirmations are already supporting the trade.
This is meant to warn you before the final confirmed signal appears.
EARLY BUY = price enters bullish order block + EMA trend supports buy + RSI supports buy + volume confirms
EARLY SELL = price enters bearish order block + EMA trend supports sell + RSI supports sell + volume confirms
Confirmed Entry Signal
The script gives a confirmed BUY or SELL only after price shows rejection from the order block.
For buy trades, price should show bullish rejection by closing green or closing above the order block midpoint.
For sell trades, price should show bearish rejection by closing red or closing below the order block midpoint.
So the confirmed signal uses:
Order block retest
EMA trend direction
RSI momentum
Volume confirmation
Optional Stochastic confirmation
Rejection candle confirmation
MA Confirmation
The script uses two EMAs:
Fast EMA
Slow EMA
In Aggressive Mode, price only needs to be above the fast EMA for buy or below the fast EMA for sell.
In Balanced Mode, the fast EMA must also be above the slow EMA for buy, or below the slow EMA for sell.
In Conservative Mode, the EMA trend must be aligned, and the fast EMA must also be sloping in the trade direction.
RSI Confirmation
RSI is used to confirm momentum.
For buy trades:
RSI must be above the Buy Level
For sell trades:
RSI must be below the Sell Level
For intraday Nifty / Bank Nifty, the script uses flexible levels like:
Buy above 48
Sell below 52
This helps catch earlier entries instead of waiting for RSI to fully cross 50.
Volume Confirmation
Volume is used to confirm participation.
The script compares current volume with the average volume.
Example:
Current volume > Volume MA x Volume Multiplier
If volume is stronger than normal, the signal is considered more valid.
For 1-minute and 3-minute trading, a low multiplier like 1.0 to 1.05 helps avoid missing too many trades.
Stochastic Confirmation
Stochastic is optional.
By default, it is better to keep it OFF for 1-minute and 3-minute charts because it can delay signals and cause missed opportunities.
If turned ON, it adds one more momentum confirmation.
Stop Loss
For a buy trade, stop loss is placed below the bullish order block with an ATR buffer.
For a sell trade, stop loss is placed above the bearish order block with an ATR buffer.
This gives the trade some breathing room based on market volatility.
Target
The target is calculated using your selected risk-reward ratio.
Example:
Risk Reward: 2.0
If your stop loss risk is 20 points, target will be 40 points.
For Bank Nifty, you can test:
Risk Reward: 2.0 or 2.5
Exit Signal
The script shows an EXIT signal when either:
Target is reached
or
Stop loss is reached
Best Use
This indicator is best used when the market has direction and momentum. It works better during active intraday sessions, especially after a breakout and pullback.
It may give weaker signals during sideways or low-volume markets.
In simple words: this script tries to find where institutions may have entered after a structure break, waits for price to return to that area, checks trend, momentum and volume, then gives early and confirmed buy/sell signals with stop loss and target.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.