PROTECTED SOURCE SCRIPT

cephxs / Precision Swing Points [Pro+]

898
PRECISION SWING POINTS (PSP)
Spot institutional repositioning through divergence between correlated assets on the closing direction of the candle.


THE CONCEPT

Markets don't move in isolation. When ES makes a new high but NQ doesn't follow—that's SMT divergence. When Euro rallies but Pound fails to rally too—that's SMT divergence. These moments reveal where institutions are repositioning.

But a Precision Swing Point (PSP) is simpler: a swing pivot where correlated assets diverge by closing direction.

Example: When ES closes bullish but NQ closes bearish—that's a PSP/PC (Price Candle divergence).

This indicator detects these closing direction divergences automatically and marks them on your chart. No complex setups, no manual asset pairing—just clean signals where it matters.

Conceptual Credits to TraderDaye


TWO MODES

  • PSP Mode: Only marks swing pivots (highs/lows) that have closing direction divergence. This is the precision filter—fewer signals, higher quality.
  • PC Mode: Marks every candle where closing direction divergence exists. Use this to see all divergence activity, not just at pivots.


Start with PSP mode. Switch to PC mode when you want the full picture.

HOW IT WORKS

The indicator compares your chart against up to two correlated assets:

  1. Fetches OHLC data for correlated assets
  2. Determines if each asset's candle closed bullish or bearish
  3. Flags divergence when one asset closes opposite another
  4. In PSP mode, only highlights when divergence coincides with a swing pivot


Three divergence relationships are tracked:
  • Primary vs Secondary (e.g., ES vs NQ)
  • Primary vs Tertiary (e.g., ES vs YM)
  • Secondary vs Tertiary (e.g., NQ vs YM)


Any divergence triggers a signal.

AUTO ASSET DETECTION

In Auto mode, the indicator uses the AssetCorrelationUtils library to detect your chart's asset class and automatically select correlated pairs:

  • Index Futures: NQ ↔ ES ↔ YM, RTY ↔ NQ ↔ ES (+ micro variants)
  • Index CFD: NAS100 ↔ SP500 ↔ DJ30
  • Forex Futures: 6E ↔ 6B ↔ DXY (inverted)
  • Forex CFD: EURUSD ↔ GBPUSD ↔ DXY (inverted), USDJPY ↔ USDCHF ↔ DXY
  • Metal Futures: GC ↔ Copper ↔ Silver (+ micro variants)
  • Metal CFD: XAUUSD ↔ Copper ↔ XAGUSD
  • Energy Futures: CL ↔ RB ↔ HO (Crude ↔ Gasoline ↔ Heating Oil)
  • Treasury Futures: ZB ↔ ZF ↔ ZN (30Y ↔ 5Y ↔ 10Y)
  • Crypto: BTC ↔ ETH ↔ TOTAL3
  • EU Stocks: GER40 ↔ EU50 (dyad)


No configuration required—just add to chart and go.

HOW TO USE

  1. Add to chart: Auto mode detects correlated assets automatically
  2. Watch for circles: Bullish PSP = circle below bar. Bearish PSP = circle above bar.
  3. Note the context: PSPs at key levels (PDH, PDL, weekly open) carry more weight
  4. Confirm on LTF: Use PSPs as directional bias, enter on lower timeframe structure
  5. Layer with other tools: PSP + sweep + FVG = high-probability setup


INPUTS

PSP Settings
  • Mode: PSP (swing pivots only) or PC (all divergence candles)
  • Precise Mode: Only highlight pivots on current asset (stricter confirmation)


Display Settings
  • Bullish/Bearish Shapes: Toggle and color the divergence markers
  • Color Candle Bodies: Highlight the actual candle, not just add a shape


Asset Selection
  • Correlation Preset: Off, Auto (library-detected), or Manual
  • Manual Assets 1/2/3: Specify custom correlated assets
  • Invert Asset 3: Flip bullish/bearish for inverse correlations (e.g., DXY)


Alerts
  • Bullish PSP Alert: Notify on bullish divergence pivots
  • Bearish PSP Alert: Notify on bearish divergence pivots
  • TPD Alert: Notify on any Terminus Price Divergence


KEY FEATURES

  • Auto Asset Detection: No manual setup—library handles correlation pairing
  • Dynamic Reordering: When you switch charts, assets reorder so chart is always primary
  • Inverse Correlation Support: Properly handles DXY and other inversely correlated assets
  • Two Modes: PSP for precision, PC for full divergence visibility
  • Precise Mode: Stricter filtering—only pivots on your chart, not correlated assets
  • Built-in Alerts: Get notified when PSPs form


BEST PRACTICES

  • Use PSP mode for trading signals, PC mode for market context
  • PSPs at session opens, previous day levels, or weekly boundaries = stronger signals
  • Multiple PSPs in same direction = building momentum
  • A failed PSP (price continues through) often becomes a runner—don't chase
  • Trust the Auto mode pairing—it's tuned for common institutional correlations


DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Divergences do not guarantee reversals—always use proper risk management and confirm with your own analysis. Past performance does not guarantee future results.


CREDITS
Developed by cephxs. Uses the AssetCorrelationUtils library by fstarcapital for auto asset detection.

Made with ❤️ by cephxs

This is a reupload to comply with emoji rules. Former script was hidden because of emojis in the title.

First Upload was around May on another account that got banned
Second Upload was Last Year on this account - Oct 17, 2025, got hidden for violating emoji rules.
This is the third Upload, and as usual, it comes with improvements. Never a step backwards.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน