OPEN-SOURCE SCRIPT

Imbalance No SL

268
📊 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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.