OPEN-SOURCE SCRIPT

PSX OBV Divergence Labels (1D)

168
PSX OBV Divergence Labels (1H/4H/1D/1W, Enhanced)

Description:

This indicator marks bullish and bearish OBV divergences on the price chart for PSX and other markets. Designed specifically for swing traders who operate on 1H, 4H, 1D, and 1W timeframes, it enhances basic divergence detection by incorporating volume spikes and OBV slope confirmation — improving signal reliability and reducing noise.

Key Features:

📈 Bullish Divergence: Marks potential buy zones when price hits a local low while OBV shows upward momentum with volume spike confirmation.

📉 Bearish Divergence: Flags potential sell zones when price hits a local high while OBV trends lower with volume weakness.

✅ Slope Confirmation: Filters signals based on sustained OBV direction over a user-defined number of bars.

🔊 Volume Filter: Detects divergence only when volume exceeds the average by a customizable multiplier (default 1.0).

🔍 Clean Visualization: Green “BUY” and red “SELL” labels show clearly on the chart, synced with candle price movement.

Best Timeframes to Use:

1H, 4H, 1D, and 1W (optimized for PSX stocks, KSE100, and KMI30)

Swing traders aiming for 2–4 week holding windows will find the most utility.

Recommended Settings:

OBV Lookback: 20

Volume Smoothing: 20

Spike Multiplier: 1.0

Slope Confirmation: 3 bars

Strategy Tip:
Use divergences in confluence with key support/resistance levels, price action traps, and market structure for high-probability setups. This tool is best used for trend exhaustion detection and reversal signals.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。