Market Environment Analysis
Comprehensive analysis tool for understanding market conditions and creating professional market reports anytime.
When to Use
- When you need a comprehensive overview of global market conditions
- Before making trading or investment decisions
- For daily/weekly market briefings
- When assessing risk-on/risk-off sentiment
- For understanding inter-market correlations and sector rotation
- When preparing market reports for clients or personal records
Prerequisites
- WebSearch access: Required for fetching real-time market data
- No API keys required: This skill uses web search for data collection
- Optional: Economic calendar data for event-driven analysis
Core Workflow
1. Initial Data Collection
Collect latest market data using web_search tool:
- Major stock indices (S&P 500, NASDAQ, Dow, Nikkei 225, Shanghai Composite, Hang Seng)
- Forex rates (USD/JPY, EUR/USD, major currency pairs)
- Commodity prices (WTI crude, Gold, Silver)
- US Treasury yields (2-year, 10-year, 30-year)
- VIX index (Fear gauge)
- Market trading status (open/close/current values)
2. Market Environment Assessment
Evaluate the following from collected data:
- Trend Direction: Uptrend/Downtrend/Range-bound
- Risk Sentiment: Risk-on/Risk-off
- Volatility Status: Market anxiety level from VIX
- Sector Rotation: Where capital is flowing
3. Report Structure
Standard Report Format:
1. Executive Summary (3-5 key points)
2. Global Market Overview
- US Markets
- Asian Markets
- European Markets
3. Forex & Commodities Trends
4. Key Events & Economic Indicators
5. Risk Factor Analysis
6. Investment Strategy Implications
Script Usage
market_utils.py
Provides common functions for report creation:
# Generate report header
python scripts/market_utils.py
# Available functions:
- format_market_report_header(): Create header
- get_market_session_times(): Check trading hours
- categorize_volatility(vix): Interpret VIX levels
- format_percentage_change(value): Format price changes
Exchange Calendar and Replay
Install requirements.txt before using scripts/market_utils.py. Its
--as-of flag requires an offset-bearing ISO-8601 timestamp (or Z); a bare
date is rejected because Tokyo, London, and New York status must share one
unambiguous instant. Session status is holiday-, lunch-break-, DST-, and
early-close-aware.
Reference Documentation
Key Indicators Interpretation
Load references/indicators.md when you need:
- Important levels for each index
- Technical analysis key points
- Sector-specific focus areas
Analysis Patterns
Load references/analysis_patterns.md when analyzing:
- Risk-on/Risk-off criteria
- Economic indicator interpretation
- Inter-market correlations
- Seasonality and market anomalies
Output Examples
Quick Summary Version
📊 Market Summary [2025/01/15 14:00]
━━━━━━━━━━━━━━━━━━━━━
【US】S&P 500: 5,123.45 (+0.45%)
【JP】Nikkei 225: 38,456.78 (-0.23%)
【FX】USD/JPY: 149.85 (↑0.15)
【VIX】16.2 (Normal range)
⚡ Key Events
- Japan GDP Flash
- US Employment Report
📈 Environment: Risk-On Continues
Detailed Analysis Version
Start with executive summary, then analyze each section in detail.
Key clarifications:
- Current market phase (Bullish/Bearish/Neutral)
- Short-term direction (1-5 days outlook)
- Risk events to monitor
- Recommended position adjustments
Important Considerations
Timezone Awareness
- Consider all major market timezones
- US markets: Evening to early morning (Asian time)
- European markets: Afternoon to evening (Asian time)
- Asian markets: Morning to afternoon (Local time)
Economic Calendar Priority
Categorize by importance:
- ⭐⭐⭐ Critical (FOMC, NFP, CPI, etc.)
- ⭐⭐ Important (GDP, Retail Sales, etc.)
- ⭐ Reference level
Data Source Priority
- Official releases (Central banks, Government statistics)
- Major financial media (Bloomberg, Reuters)
- Broker reports
- Analyst consensus estimates
Troubleshooting
Data Collection Notes
- Check market holidays (holiday calendars)
- Be aware of daylight saving time changes
- Distinguish between flash and final data
Market Volatility Response
- First organize the facts
- Reference historical similar events
- Verify with multiple sources
- Maintain objective analysis
Customization Options
Adjust based on user's investment style:
- Day Traders: Intraday charts, order flow focus
- Swing Traders: Daily/weekly technicals emphasis
- Long-term Investors: Fundamentals, macro economics focus
- Forex Traders: Currency correlations, interest rate differentials
- Options Traders: Volatility analysis, Greeks monitoring
Resources
references/indicators.md - Key market indicators and interpretation guides
references/analysis_patterns.md - Risk-on/risk-off criteria and inter-market correlations
scripts/market_utils.py - Utility functions for report formatting and market status
1---2name: market-environment-analysis3description: Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.4---5
6# Market Environment Analysis
7
8Comprehensive analysis tool for understanding market conditions and creating professional market reports anytime.
9
10## When to Use
11
12- When you need a comprehensive overview of global market conditions
13- Before making trading or investment decisions
14- For daily/weekly market briefings
15- When assessing risk-on/risk-off sentiment
16- For understanding inter-market correlations and sector rotation
17- When preparing market reports for clients or personal records
18
19## Prerequisites
20
21- **WebSearch access**: Required for fetching real-time market data
22- **No API keys required**: This skill uses web search for data collection
23- **Optional**: Economic calendar data for event-driven analysis
24
25## Core Workflow
26
27### 1. Initial Data Collection
28Collect latest market data using web_search tool:
291. Major stock indices (S&P 500, NASDAQ, Dow, Nikkei 225, Shanghai Composite, Hang Seng)
302. Forex rates (USD/JPY, EUR/USD, major currency pairs)
313. Commodity prices (WTI crude, Gold, Silver)
324. US Treasury yields (2-year, 10-year, 30-year)
335. VIX index (Fear gauge)
346. Market trading status (open/close/current values)
35
36### 2. Market Environment Assessment
37Evaluate the following from collected data:
38- **Trend Direction**: Uptrend/Downtrend/Range-bound
39- **Risk Sentiment**: Risk-on/Risk-off
40- **Volatility Status**: Market anxiety level from VIX
41- **Sector Rotation**: Where capital is flowing
42
43### 3. Report Structure
44
45#### Standard Report Format:
46```
471. Executive Summary (3-5 key points)
482. Global Market Overview
49 - US Markets
50 - Asian Markets
51 - European Markets
523. Forex & Commodities Trends
534. Key Events & Economic Indicators
545. Risk Factor Analysis
556. Investment Strategy Implications
56```
57
58## Script Usage
59
60### market_utils.py
61Provides common functions for report creation:
62```bash
63# Generate report header
64python scripts/market_utils.py
65
66# Available functions:
67- format_market_report_header(): Create header
68- get_market_session_times(): Check trading hours
69- categorize_volatility(vix): Interpret VIX levels
70- format_percentage_change(value): Format price changes
71```
72
73## Exchange Calendar and Replay
74
75Install `requirements.txt` before using `scripts/market_utils.py`. Its
76`--as-of` flag requires an offset-bearing ISO-8601 timestamp (or `Z`); a bare
77date is rejected because Tokyo, London, and New York status must share one
78unambiguous instant. Session status is holiday-, lunch-break-, DST-, and
79early-close-aware.
80
81## Reference Documentation
82
83### Key Indicators Interpretation
84Load `references/indicators.md` when you need:
85- Important levels for each index
86- Technical analysis key points
87- Sector-specific focus areas
88
89### Analysis Patterns
90Load `references/analysis_patterns.md` when analyzing:
91- Risk-on/Risk-off criteria
92- Economic indicator interpretation
93- Inter-market correlations
94- Seasonality and market anomalies
95
96## Output Examples
97
98### Quick Summary Version
99```
100📊 Market Summary [2025/01/15 14:00]
101━━━━━━━━━━━━━━━━━━━━━
102【US】S&P 500: 5,123.45 (+0.45%)
103【JP】Nikkei 225: 38,456.78 (-0.23%)
104【FX】USD/JPY: 149.85 (↑0.15)
105【VIX】16.2 (Normal range)
106
107⚡ Key Events
108- Japan GDP Flash
109- US Employment Report
110
111📈 Environment: Risk-On Continues
112```
113
114### Detailed Analysis Version
115Start with executive summary, then analyze each section in detail.
116Key clarifications:
1171. Current market phase (Bullish/Bearish/Neutral)
1182. Short-term direction (1-5 days outlook)
1193. Risk events to monitor
1204. Recommended position adjustments
121
122## Important Considerations
123
124### Timezone Awareness
125- Consider all major market timezones
126- US markets: Evening to early morning (Asian time)
127- European markets: Afternoon to evening (Asian time)
128- Asian markets: Morning to afternoon (Local time)
129
130### Economic Calendar Priority
131Categorize by importance:
132- ⭐⭐⭐ Critical (FOMC, NFP, CPI, etc.)
133- ⭐⭐ Important (GDP, Retail Sales, etc.)
134- ⭐ Reference level
135
136### Data Source Priority
1371. Official releases (Central banks, Government statistics)
1382. Major financial media (Bloomberg, Reuters)
1393. Broker reports
1404. Analyst consensus estimates
141
142## Troubleshooting
143
144### Data Collection Notes
145- Check market holidays (holiday calendars)
146- Be aware of daylight saving time changes
147- Distinguish between flash and final data
148
149### Market Volatility Response
1501. First organize the facts
1512. Reference historical similar events
1523. Verify with multiple sources
1534. Maintain objective analysis
154
155## Customization Options
156
157Adjust based on user's investment style:
158- **Day Traders**: Intraday charts, order flow focus
159- **Swing Traders**: Daily/weekly technicals emphasis
160- **Long-term Investors**: Fundamentals, macro economics focus
161- **Forex Traders**: Currency correlations, interest rate differentials
162- **Options Traders**: Volatility analysis, Greeks monitoring
163
164## Resources
165
166- `references/indicators.md` - Key market indicators and interpretation guides
167- `references/analysis_patterns.md` - Risk-on/risk-off criteria and inter-market correlations
168- `scripts/market_utils.py` - Utility functions for report formatting and market status