OPEN-SOURCE SCRIPT

Risk-On / Risk-Off Composite

97
Real-time Risk-On / Risk-Off Composite from your four ratios:


SPY / TLT (equities vs long bonds)

HYG / LQD (high-yield vs IG credit)

HG / GOLD (copper vs gold)

BTC / GOLD (speculative vs defensive)

It:

normalizes each ratio with a z-score (so they’re comparable),

lets you weight them,

plots a composite line + histogram (up = risk-on, down = risk-off),

shows a small heat-table for each sub-signal,

and includes alert conditions for Risk-On / Risk-Off flips.

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

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