OPEN-SOURCE SCRIPT
Imbalance No SL

📊 Strategy Name: Imbalance No SL
This strategy specially trades on price jumps (true imbalances) in the market, takes advantage of momentum only, and as soon as the opposite signal and profit is received, the trade is closed immediately.
Imbalance No SL strategy specially generates buy and sell signals based on "Imbalance" logic, without any fixed Stop Loss.
🔍 Core Logic
Imbalance Detection
Bullish Imbalance: When the low of the current candle is above the high of the previous candle.
(i.e. a jump type gap occurred in the market – demand is high, price went straight up)
Bearish Imbalance: When the high of the current candle is below the low of the previous candle.
(i.e. the market suddenly fell down)
Creating Visual Box and Label on Signal:
As soon as bullish imbalance is found, green box & IMB BULL label is displayed on the chart.
Bearish has red box & IMB BEAR label.
Trade Entry Logic
BUY on Bullish Imbalance: If there is already a buy or neutral position, then a new “BUY” signal will fire.
SELL on Bearish Imbalance: If already in sell or neutral position, then new “SELL” signal will fire.
You can set quantity/lot size from ‘qty’ input field.
Trade Average Calculation
Buy/Sell maintains average price and their count (so that if averaging is done then correct P&L is calculated).
Trade Exit Logic (Profit Booking/Signal Reverse)
If your buy is going on and bearish imbalance is formed + price is above your average, then buy will be closed (profit condition).
If sell is going on and bullish imbalance is formed + price is below average, then sell will be closed.
Chart Cleaning/Management
Only keep the label and box of the latest signal on the chart, old boxes/labels are automatically deleted.
Alert
You can get alert on bullish or bearish signal (by using alert feature of TradingView).
✅ Simple Explanation for User
This strategy buys or sells directly at the gap (imbalance).
Whenever there is a clear signal of momentum in the market (breakout of the gap), then the trade entry takes place.
When there is an imbalance in the opposite direction and profit is made, the system closes the trade (closes).
There is no fixed stop-loss, risk management is handled by trade averaging/close.
You will know at every point on the visually chart that at which bar the buy, sell and exit took place.
⚠️ What to remember?
If the market is in trend then this script gives very good signals.
In choppy/sideways market, some loss trades can also come because there is no SL.
Big profit or big loss – both depend on the imbalance signal and market speed.
This strategy specially trades on price jumps (true imbalances) in the market, takes advantage of momentum only, and as soon as the opposite signal and profit is received, the trade is closed immediately.
Imbalance No SL strategy specially generates buy and sell signals based on "Imbalance" logic, without any fixed Stop Loss.
🔍 Core Logic
Imbalance Detection
Bullish Imbalance: When the low of the current candle is above the high of the previous candle.
(i.e. a jump type gap occurred in the market – demand is high, price went straight up)
Bearish Imbalance: When the high of the current candle is below the low of the previous candle.
(i.e. the market suddenly fell down)
Creating Visual Box and Label on Signal:
As soon as bullish imbalance is found, green box & IMB BULL label is displayed on the chart.
Bearish has red box & IMB BEAR label.
Trade Entry Logic
BUY on Bullish Imbalance: If there is already a buy or neutral position, then a new “BUY” signal will fire.
SELL on Bearish Imbalance: If already in sell or neutral position, then new “SELL” signal will fire.
You can set quantity/lot size from ‘qty’ input field.
Trade Average Calculation
Buy/Sell maintains average price and their count (so that if averaging is done then correct P&L is calculated).
Trade Exit Logic (Profit Booking/Signal Reverse)
If your buy is going on and bearish imbalance is formed + price is above your average, then buy will be closed (profit condition).
If sell is going on and bullish imbalance is formed + price is below average, then sell will be closed.
Chart Cleaning/Management
Only keep the label and box of the latest signal on the chart, old boxes/labels are automatically deleted.
Alert
You can get alert on bullish or bearish signal (by using alert feature of TradingView).
✅ Simple Explanation for User
This strategy buys or sells directly at the gap (imbalance).
Whenever there is a clear signal of momentum in the market (breakout of the gap), then the trade entry takes place.
When there is an imbalance in the opposite direction and profit is made, the system closes the trade (closes).
There is no fixed stop-loss, risk management is handled by trade averaging/close.
You will know at every point on the visually chart that at which bar the buy, sell and exit took place.
⚠️ What to remember?
If the market is in trend then this script gives very good signals.
In choppy/sideways market, some loss trades can also come because there is no SL.
Big profit or big loss – both depend on the imbalance signal and market speed.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.