OPEN-SOURCE SCRIPT
Risk On/Risk Off by Gary

# Risk On/Risk Off Indicator (RORO)
## Overview
The Risk On/Risk Off (RORO) Indicator is a comprehensive market sentiment gauge that measures the balance between risk-seeking and risk-averse behavior across multiple asset classes. This indicator helps traders identify shifts in market sentiment and potential trend changes.
## How It Works
The RORO indicator aggregates normalized price movements (Z-scores) from eight major asset classes:
**Risk-On Assets (Bullish Sentiment):**
- Bitcoin Futures (BTC1!) - Cryptocurrency risk appetite
- WTI Crude Oil Futures (CL1!) - Energy sector strength
- AUD/JPY Exchange Rate - Carry trade indicator
- Emerging Markets ETF (EEM) - Global growth proxy
**Risk-Off Assets (Defensive Sentiment):**
- Gold Futures (GC1!) - Safe haven demand
- 10-Year Treasury Bonds (ZN1!) - Flight to quality
- US Dollar Index (DXY) - Reserve currency strength
- VIX Index - Market fear gauge (inverted)
## Key Features
- **Z-Score Normalization**: Standardizes different asset classes for fair comparison
- **Customizable Weights**: Adjust the influence of each asset class
- **Dynamic Coloring**: Green indicates rising risk appetite, red shows declining risk appetite
## Interpretation
- **Rising RORO (Green)**: Increasing risk appetite - favorable for equities, commodities, and growth assets
- **Falling RORO (Red)**: Decreasing risk appetite - rotation into safe havens
- **Divergences**: When RORO and price move in opposite directions, potential reversal signal
## Use Cases
1. **Market Regime Identification**: Determine current risk environment
2. **Divergence Trading**: Spot when price action contradicts underlying sentiment
3. **Portfolio Management**: Time defensive vs. aggressive positioning
4. **Confirmation Tool**: Validate breakouts and trend changes
## Settings
- **Lookback Period**: Controls Z-score calculation sensitivity (default: 50)
- **Asset Weights**: Fine-tune the contribution of each asset class
- **Color Scheme**: Customize rising/falling colors
## Best Practices
- Use on daily or higher timeframes for most reliable signals
- Combine with price action and volume analysis
- Watch for sustained moves rather than single-bar changes
---
*This indicator is designed for educational purposes. Always conduct your own analysis and risk management.*
## Overview
The Risk On/Risk Off (RORO) Indicator is a comprehensive market sentiment gauge that measures the balance between risk-seeking and risk-averse behavior across multiple asset classes. This indicator helps traders identify shifts in market sentiment and potential trend changes.
## How It Works
The RORO indicator aggregates normalized price movements (Z-scores) from eight major asset classes:
**Risk-On Assets (Bullish Sentiment):**
- Bitcoin Futures (BTC1!) - Cryptocurrency risk appetite
- WTI Crude Oil Futures (CL1!) - Energy sector strength
- AUD/JPY Exchange Rate - Carry trade indicator
- Emerging Markets ETF (EEM) - Global growth proxy
**Risk-Off Assets (Defensive Sentiment):**
- Gold Futures (GC1!) - Safe haven demand
- 10-Year Treasury Bonds (ZN1!) - Flight to quality
- US Dollar Index (DXY) - Reserve currency strength
- VIX Index - Market fear gauge (inverted)
## Key Features
- **Z-Score Normalization**: Standardizes different asset classes for fair comparison
- **Customizable Weights**: Adjust the influence of each asset class
- **Dynamic Coloring**: Green indicates rising risk appetite, red shows declining risk appetite
## Interpretation
- **Rising RORO (Green)**: Increasing risk appetite - favorable for equities, commodities, and growth assets
- **Falling RORO (Red)**: Decreasing risk appetite - rotation into safe havens
- **Divergences**: When RORO and price move in opposite directions, potential reversal signal
## Use Cases
1. **Market Regime Identification**: Determine current risk environment
2. **Divergence Trading**: Spot when price action contradicts underlying sentiment
3. **Portfolio Management**: Time defensive vs. aggressive positioning
4. **Confirmation Tool**: Validate breakouts and trend changes
## Settings
- **Lookback Period**: Controls Z-score calculation sensitivity (default: 50)
- **Asset Weights**: Fine-tune the contribution of each asset class
- **Color Scheme**: Customize rising/falling colors
## Best Practices
- Use on daily or higher timeframes for most reliable signals
- Combine with price action and volume analysis
- Watch for sustained moves rather than single-bar changes
---
*This indicator is designed for educational purposes. Always conduct your own analysis and risk management.*
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน