Market Environment Analysis
Comprehensive analysis tool for understanding market conditions and creating professional market reports anytime.
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
Reference Documentation
Key Indicators Interpretation (references/indicators.md)
Reference when you need:
- Important levels for each index
- Technical analysis key points
- Sector-specific focus areas
Analysis Patterns (references/analysis_patterns.md)
Reference 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
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## Core Workflow
11
12### 1. Initial Data Collection
13Collect latest market data using web_search tool:
141. Major stock indices (S&P 500, NASDAQ, Dow, Nikkei 225, Shanghai Composite, Hang Seng)
152. Forex rates (USD/JPY, EUR/USD, major currency pairs)
163. Commodity prices (WTI crude, Gold, Silver)
174. US Treasury yields (2-year, 10-year, 30-year)
185. VIX index (Fear gauge)
196. Market trading status (open/close/current values)
20
21### 2. Market Environment Assessment
22Evaluate the following from collected data:
23- **Trend Direction**: Uptrend/Downtrend/Range-bound
24- **Risk Sentiment**: Risk-on/Risk-off
25- **Volatility Status**: Market anxiety level from VIX
26- **Sector Rotation**: Where capital is flowing
27
28### 3. Report Structure
29
30#### Standard Report Format:
31```
321. Executive Summary (3-5 key points)
332. Global Market Overview
34 - US Markets
35 - Asian Markets
36 - European Markets
373. Forex & Commodities Trends
384. Key Events & Economic Indicators
395. Risk Factor Analysis
406. Investment Strategy Implications
41```
42
43## Script Usage
44
45### market_utils.py
46Provides common functions for report creation:
47```bash
48# Generate report header
49python scripts/market_utils.py
50
51# Available functions:
52- format_market_report_header(): Create header
53- get_market_session_times(): Check trading hours
54- categorize_volatility(vix): Interpret VIX levels
55- format_percentage_change(value): Format price changes
56```
57
58## Reference Documentation
59
60### Key Indicators Interpretation (references/indicators.md)
61Reference when you need:
62- Important levels for each index
63- Technical analysis key points
64- Sector-specific focus areas
65
66### Analysis Patterns (references/analysis_patterns.md)
67Reference when analyzing:
68- Risk-on/Risk-off criteria
69- Economic indicator interpretation
70- Inter-market correlations
71- Seasonality and market anomalies
72
73## Output Examples
74
75### Quick Summary Version
76```
77📊 Market Summary [2025/01/15 14:00]
78━━━━━━━━━━━━━━━━━━━━━
79【US】S&P 500: 5,123.45 (+0.45%)
80【JP】Nikkei 225: 38,456.78 (-0.23%)
81【FX】USD/JPY: 149.85 (↑0.15)
82【VIX】16.2 (Normal range)
83
84⚡ Key Events
85- Japan GDP Flash
86- US Employment Report
87
88📈 Environment: Risk-On Continues
89```
90
91### Detailed Analysis Version
92Start with executive summary, then analyze each section in detail.
93Key clarifications:
941. Current market phase (Bullish/Bearish/Neutral)
952. Short-term direction (1-5 days outlook)
963. Risk events to monitor
974. Recommended position adjustments
98
99## Important Considerations
100
101### Timezone Awareness
102- Consider all major market timezones
103- US markets: Evening to early morning (Asian time)
104- European markets: Afternoon to evening (Asian time)
105- Asian markets: Morning to afternoon (Local time)
106
107### Economic Calendar Priority
108Categorize by importance:
109- ⭐⭐⭐ Critical (FOMC, NFP, CPI, etc.)
110- ⭐⭐ Important (GDP, Retail Sales, etc.)
111- ⭐ Reference level
112
113### Data Source Priority
1141. Official releases (Central banks, Government statistics)
1152. Major financial media (Bloomberg, Reuters)
1163. Broker reports
1174. Analyst consensus estimates
118
119## Troubleshooting
120
121### Data Collection Notes
122- Check market holidays (holiday calendars)
123- Be aware of daylight saving time changes
124- Distinguish between flash and final data
125
126### Market Volatility Response
1271. First organize the facts
1282. Reference historical similar events
1293. Verify with multiple sources
1304. Maintain objective analysis
131
132## Customization Options
133
134Adjust based on user's investment style:
135- **Day Traders**: Intraday charts, order flow focus
136- **Swing Traders**: Daily/weekly technicals emphasis
137- **Long-term Investors**: Fundamentals, macro economics focus
138- **Forex Traders**: Currency correlations, interest rate differentials
139- **Options Traders**: Volatility analysis, Greeks monitoring