Market Environment Analysis
@Veeramanikandanr48
npx machina-cli add skill @Veeramanikandanr48/market-environment-analysis --openclawMarket 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
Overview
This skill provides a comprehensive framework to understand market conditions across US, European and Asian markets, including forex, commodities, and economic indicators. It outputs professional market reports with a standard structure, offering actionable insights and a clear risk posture.
How This Skill Works
It collects data on major indices, forex rates, commodities, US Treasuries yields, and the VIX to assess trend direction, risk sentiment, volatility, and sector rotation. It then assembles a structured report with sections like Executive Summary, Global Market Overview, and Investment Strategy Implications, and supports header generation via market_utils.py.
When to Use It
- Preparing daily or weekly market briefings for clients or internal teams
- Assessing risk-on vs risk-off conditions and volatility using VIX and related indicators
- Analyzing inter-market relationships (US, Europe, Asia) and identifying sector rotation
- Generating executive summaries and concrete investment strategy implications
- Tracking major economic events and their anticipated market impact
Quick Start
- Step 1: Collect latest market data (indices, forex, commodities, yields, VIX) using web_search
- Step 2: Run market_utils.py to generate header and assess session times (format_market_report_header, get_market_session_times, categorize_volatility)
- Step 3: Compile the standard report sections (Executive Summary, Global Market Overview, Forex & Commodities Trends, Key Events & Economic Indicators, Risk Factor Analysis, Investment Strategy Implications) and review
Best Practices
- Prioritize official data releases from central banks and government statistics as primary sources
- Maintain timezone awareness to align analysis with global market sessions
- Use the categorize_volatility function to interpret VIX-level signals consistently
- Follow the Standard Report Format: Executive Summary, Global Market Overview, Forex & Commodities Trends, etc.
- Regularly review indicator interpretations, patterns, and thresholds to stay current
Example Use Cases
- US equities rally with a Risk-On signal accompanied by sector rotation into cyclical groups
- Mixed Asian markets while European indices trend sideways during cross-continental events
- USD/JPY breakout paired with a rising VIX indicating a current volatility spike
- Commodities rally on positive macro data and easing yields, shifting risk appetite
- A stalled market environment with range-bound indices and cautious positioning