PROTECTED SOURCE SCRIPT

Rapid bp-meter(2Y) MTF V2.0

15
US 2Y Yield — Basis-Point Meter (30s Fast + 1m Confirm)

What it does (one-liner):
A simple, fast basis-point (bp) meter for the US 2-Year Treasury yield that shows a 30-second “pre-trigger” and a 1-minute confirmation so you can quickly gauge risk-on / risk-off during news and FOMC events.

Overview
This tool tracks the change in the US 2-Year yield in basis points (1 bp = 0.01%). It displays two readings:
  • Fast: 30-second bp change (early signal).
  • Confirm: 1-minute bp change (confirmation).


Color logic is intentionally simple:
  • Green = yields down beyond your threshold (typical risk-on bias).
  • Red = yields up beyond your threshold (typical risk-off bias).
  • Gray = within thresholds (no signal).


Typical interpretation (not a signal service):
  • Yields ↓ (green) often align with USD weakness / risk-on (e.g., EURUSD↑, XAUUSD↑, NQ100↑, USDJPY↓).
  • Yields ↑ (red) often align with USD strength / risk-off (e.g., EURUSD↓, XAUUSD↓, NQ100↓, USDJPY↑).


Works on any chart. The yield is fetched from your chosen symbol/timeframes via request.security, independent of the chart timeframe.

Inputs
  • Yield symbol: default TVC:US02Y.
  • (Alternative proxy if seconds TF not available: 2-yr futures CBOT:ZT1!—note futures price ↑ = yield ↓.)
  • Fast timeframe: default 30S. (Use 1m if your plan/symbol doesn’t support seconds.)
  • Confirm timeframe: default 1 (1-minute).
  • Fast trigger (bp): default 2.0 bp.
  • Confirm trigger (bp): default 5.0 bp.
  • No-repaint mode: uses completed bars only. Turn off if you want intrabar responsiveness (may repaint).
  • Panel position: choose where the table appears on your chart.


What the table shows
  • 2Y Δ fast (30S): e.g., −2.4 bp (green)
  • 2Y Δ conf (1): e.g., −6.1 bp (green)


Rule of thumb
  • Both GREEN → risk-on bias likely (consider EURUSD/XAU/NQ long, USDJPY short).
  • Both RED → risk-off bias likely (consider the inverse).
  • Mixed → wait for alignment or price structure confirmation.


How to use (step-by-step)
  1. Add to any chart.
  2. Set Yield symbol to TVC:US02Y. If seconds aren’t available, keep Fast=1m and Confirm=3m (or use ZT1! as a fast proxy + US02Y confirm).
  3. Choose Fast/Confirm thresholds. Defaults (2 bp / 5 bp) are conservative for major news (CPI/NFP/FOMC).
  4. During events, wait for the first 1–3 minutes to pass; then act only if both readings agree and price gives a clean impulse → pullback → continuation.
  5. Risk: size down on news; use a fixed $ risk per trade; place stops beyond the impulse origin.
  6. Optional: enable the built-in alerts (const messages) for Fast up/down and Confirm up/down.


Alerts (included)

  • Fast down (pre-trigger) – “US 2Y down ≥ fast threshold → risk-on (pre-trigger)”
  • Fast up (pre-trigger) – “US 2Y up ≥ fast threshold → risk-off (pre-trigger)”
  • Confirm down (confirmed) – “US 2Y down ≥ confirm threshold → risk-on (confirmed)”
  • Confirm up (confirmed) – “US 2Y up ≥ confirm threshold → risk-off (confirmed)”


Tip: You can customize alert text in TradingView’s alert dialog if you want to include thresholds or tickers.

Best practices & notes
  • Seconds data requires the appropriate plan and symbol support. If seconds aren’t supported for US02Y, use 1m/3m or combine ZT1! (futures) for “fast” with US02Y for confirm.
  • No-repaint mode is recommended; turning it off will read intrabar values that can change by bar close.
  • The meter is directional context, not an entry by itself—combine with levels (NY H/L, VWAP, H1 S/R).
  • On some sessions, headline vs. core news or Powell Q&A may cause second-leg reversals; confirm with price action.


Limitations (transparent)
  • This tool does not predict future yields; it only reads the recent bp change on your selected timeframes.
  • Correlations vary; yield moves don’t always translate into the same magnitude on FX/indices/commodities.
  • If your broker or symbol has delays or limited intraday history, readings may differ.
  • Futures proxy (ZT1!) is inversely related to yield; interpretation must be inverted if you use it for the fast leg.


What “inverse to yield” means
  • When yields fall, bond prices rise.
  • TVC:US02Y = the yield itself.
  • CBOT:ZT1! = the price of the 2-yr note futures.

So:
  • US02Y ↓ (−bp) ⇢ ZT1! ↑ (price up)
  • US02Y ↑ (+bp) ⇢ ZT1! ↓ (price down)


That’s the “inverse” part: yield and futures price move in opposite directions.


Disclaimer
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice, and it does not guarantee outcomes or profits. Trading involves risk, including the loss of principal. Always do your own research and use proper risk management.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.