OPEN-SOURCE SCRIPT

🌀 Vortex Trap Oscillator

161
Vortex Oscillator Core

Calculates the difference between upward and downward directional price flow.

Spikes in either direction highlight strong directional bias or potential exhaustion.

Trap Signal Logic

A Bullish Trap is signaled when:

Vortex turns strongly negative (false bearish pressure)

There's a volume burst

Buy/sell tension favors buyers

An RSI bullish divergence is detected

A Bearish Trap is signaled under the inverse conditions.

Volume Burst Filter

Compares current volume to a moving average baseline.

Triggers only when volume surges past a dynamic threshold.

Tension Filter

Compares smoothed buy and sell volumes.

Confirms whether aggressive participants are truly in control.

RSI Divergence Filter

Uses pivot-based divergence detection to validate exhaustion signals.

Adds another layer of trap confirmation.

📈 How To Use:
Overlay Mode: Use alongside price action to visually confirm trap signals.

Entry Timing:

Look for trap markers (â–² for bullish traps below bar, â–¼ for bearish traps above bar).

Use confirmation from your own system (e.g. candle patterns, support/resistance).

Exit or Fade Strategy:

Consider fading the trap (trading against the move) if it aligns with higher-timeframe confluence.

Watch for reversal candles near trap zones.

🛠 Settings Tips:
Adjust Vortex Period to control trap sensitivity (shorter = more signals, longer = smoother).

Use Volume Burst Threshold to filter out noise on low-volume assets.

RSI Divergence Depth can be increased on higher timeframes for cleaner divergence reads.

🧠 Best Used For:
Detecting false breakouts

Catching mean reversions after stop hunts

Identifying momentum traps in volatile markets

Filtering aggressive moves that lack volume confirmation

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.