PROTECTED SOURCE SCRIPT
Digital Credit: Yields, Spreads & Regime

TN Preferreds is a yield-centric dashboard for bitcoin backed preferreds that overlays effective yields. It builds credit/benchmark spread series, a simple regime model (Risk-On / Cautious / Risk-Off), and a compact table that surfaces price, yield, target, upside and diagnostics—so you can quickly judge relative value and risk conditions.
What it does:
- Plots effective yields for STRF/STRC/STRK/STRD (+ CNLTN toggle).
- Pulls IG (FRED:BAMLC0A0CMEY), HY (FRED:BAMLH0A0HYM2EY) and US10Y as references.
- Computes Credit Spreads vs US10Y and Benchmark Spreads (F−IG, C−IG, K−IG−1%, D−HY) with EMAs/SMA for context.
- STRC monthly rate input: set 12 monthly percentages; the current month auto-applies to compute the dividend.
- Targets & upside: yield-parity targets for each series + % move to target
- Leader logic: picks the series with the strongest SMA-based spread improvement and estimates a leader target price.
- Risk regime: EMA-based deltas across spreads define Risk-On / Cautious / Risk-Off; optional background + last-bar label.
- Table view (bottom-right): price, eff. yield, target, upside, CS, BS, BS-EMA, BS-Diff, leader stats, regime deltas.
Notes:
- Designed for overlay on any chart (format = percent, right scale). Works best with a yield based basis like US10Y
• FRED series must be available on your TradingView plan/region. - Educational tool, not investment advice. Always validate assumptions (dividends, conversion terms, required spreads).
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน