OPEN-SOURCE SCRIPT

Volume Surge Breakout + TP/SL

602
█ OVERVIEW
“Volume Surge Breakout + TP/SL” is a breakout indicator designed to capture strong momentum moves driven by sudden increases in trading volume and decisive price action. Instead of focusing on classical consolidation structures, the indicator reacts to volume-based impulses combined with candle strength, identifying moments when the market shifts out of short-term balance.
After a confirmed breakout, the indicator automatically plots the entry level, Stop Loss, and up to three Take Profit targets, making it a complete momentum-trading tool.

█ CONCEPTS
Strong market moves often begin with a sudden surge in volume, signaling increased participation and commitment from market participants. This indicator detects such moments by combining three core conditions:
- volume significantly above its average,
- a candle body clearly larger than the previous one,
- directional price close confirming bullish or bearish intent.

When these conditions are met, a momentum zone (box) is drawn around the signal candle. The box extends forward until a breakout occurs, which then triggers the entry signal and full TP/SL projection. A breakout in the opposite direction invalidates the zone, filtering out false impulses.

█ FEATURES
Volume filter
- volume > volume SMA × Volume Threshold (default 2.0×)
- adjustable volume average length (Volume SMA Length)

Candle strength filter
- current candle body > previous candle body × Body Multiplier
- removes weak and random price moves

Dynamic impulse zones (boxes)
- green for LONG, red for SHORT
- semi-transparent fill with colored borders
- boxes extend to the right until a breakout occurs
- opposite breakout deletes the zone

Breakout signals
- small green triangles below the bar (LONG)
- small red triangles above the bar (SHORT)
- signals appear only after a valid breakout from the zone

Volume strength display
- optional label showing the volume multiplier (e.g. 2.35×)
- color-coded to match trade direction

Automatic Take Profit & Stop Loss
- two SL calculation modes:
  • ATR-based (default 1.5× ATR)
  • Percentage-based from entry price
- up to 3 Take Profit levels based on Risk-to-Reward ratios
- independent visibility toggles for SL, TP1, TP2, TP3
- visual fills:
  • red – risk zone
  • green – reward zone

Single active trade logic
- TP/SL levels are locked once SL or the furthest TP is hit
- lines terminate exactly at the exit bar

Alerts
- LONG – bullish volume impulse
- SHORT – bearish volume impulse

█ HOW TO USE
Add the indicator to your TradingView chart → Indicators → search for
“Volume Surge Breakout + TP/SL”.

After each valid breakout, you will see:
- a volume impulse box,
- a breakout triangle,
- the entry line,
- SL and TP1–TP3 levels,
- a visual risk-to-reward projection.

Key settings to optimize:
Volume
- Volume SMA Length – averaging period for volume
- Volume Threshold – minimum volume multiplier
- Body Multiplier – required candle body expansion

TP / SL
- choose SL mode: ATR or Percentage
- ATR period and multiplier
- RR values for TP1, TP2, TP3

Signal interpretation:
- Green box + green triangle + TP above price = LONG
- Red box + red triangle + TP below price = SHORT
- No breakout = no trade (box remains observational)

█ APPLICATIONS
- Momentum and breakout trading across all timeframes
- Best used as an entry trigger, not as a standalone strategy

Recommended confluence-based approach:
The highest-quality signals occur when the breakout aligns with broader market context:
- higher-timeframe trend agreement
- breakout signal generated by the indicator
- increasing momentum (e.g. RSI, MACD, custom momentum oscillators)
- no major resistance/support levels directly in front of price
- volume impulse confirming market participation

Example:
If the market is in an uptrend, a LONG breakout signal appears, momentum is accelerating, and no nearby resistance is present, the trade is worth considering, using the automatically projected RR levels.
- Aggressive two-sided trading is possible but requires stricter signal selection
- Higher RR setups (e.g. TP3 = 3–5× SL) with lower win rates often outperform over time

█ NOTES
This indicator works only on markets with real volume data (e.g. stocks, futures, many crypto markets).
On instruments without real volume (such as some CFD indices), signals may be unreliable or the indicator may not function correctly.

Always test and optimize parameters for the specific instrument and timeframe. The indicator intentionally does not interpret market structure — its sole purpose is to identify clean volume-driven impulses.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.