TradingView Quantitative Investment Analysis Skill
English | 简体中文

Professional quantitative investment analysis system based on TradingView data providing intelligent stock screening, technical pattern recognition, market review, risk management, and event-driven analysis.
Installation
Install this skill with one command:
npx skills add hypier/tradingview-quantitative-skills
Features
- ✅ Smart Stock Screening - Multi-factor comprehensive scoring, dual filtering of technical + fundamental aspects
- 📊 Technical Pattern Recognition - Automatically identify classic patterns, provide confidence assessment and trading strategies
- 📈 Market Review - Track hot sectors, capital flows, discover investment opportunities
- 🛡️ Risk Management - Position suggestions, stop-loss/take-profit, volatility analysis
- 📰 Event-Driven Analysis - Track earnings, policies, news, analyze market impact
- 🔍 Deep Individual Stock Analysis - Multi-timeframe technical analysis + fundamentals + news comprehensive evaluation
- 💰 Fundamental Screening - High dividend, low valuation, profitability screening
- 🔄 Sector Rotation - Identify strong sectors and rotation trends
Quick Start
1. Configure MCP Server
Add TradingView MCP server to Cursor or Claude Desktop configuration file:
Configuration file paths:
- macOS/Linux:
~/Library/Application Support/Cursor/mcp_config.json
- Windows:
%APPDATA%\Cursor\mcp_config.json
📖 Security Notice: Please read SECURITY.md for important information about API key management and data privacy.
Method 1: Use RapidAPI (Recommended, Ready to Use)
Visit https://rapidapi.com/hypier/api/tradingview-data1 to apply for a free API Key, then configure:
⚠️ SECURITY WARNING: Never commit your real API key to version control. Keep your API key secure and private. The example below uses a placeholder that you must replace with your actual key.
{
"mcpServers": {
"RapidAPI Hub - TradingView Data": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.rapidapi.com",
"--header",
"x-api-host: tradingview-data1.p.rapidapi.com",
"--header",
"x-api-key: <YOUR_RAPIDAPI_KEY_HERE>"
]
}
}
}
Configuration Steps:
- Visit https://rapidapi.com/hypier/api/tradingview-data1
- Register/login to RapidAPI account
- Subscribe to free plan (Free tier)
- Copy your API Key
- Replace
<YOUR_RAPIDAPI_KEY_HERE> in the configuration above with your actual API key
- Restart Cursor/Claude Desktop
Method 2: Use Self-Built JWT Token Service
If you already have a RapidAPI Key, you can use a self-built JWT Token service:
Step 1: Generate JWT Token
⚠️ SECURITY WARNING: Replace <YOUR_RAPIDAPI_KEY_HERE> with your actual API key. Never share or commit your API key.
curl --request POST \
--url https://tradingview-data1.p.rapidapi.com/api/mcp/generate \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
--header 'x-rapidapi-key: <YOUR_RAPIDAPI_KEY_HERE>' \
--data '{}'
Step 2: Configure the returned JWT Token to MCP
⚠️ SECURITY WARNING: Replace <YOUR_JWT_TOKEN_HERE> with the actual JWT token from Step 1. Never commit tokens to version control.
{
"mcpServers": {
"tradingview": {
"type": "streamable-http",
"url": "https://mcp.example-mcp-server.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_JWT_TOKEN_HERE>",
"Accept": "application/json, text/event-stream"
}
}
}
}
Recommended Configuration
For most users, Method 1 (RapidAPI) is recommended because:
- ✅ No need to manually manage token expiration
- ✅ Simple configuration, one-time setup permanent validity
- ✅ Free quota sufficient for personal use
- ✅ Automatic authentication and retry handling
2. Verify Installation
After restart, enter in conversation:
Please call tradingview_get_metadata to get the list of supported markets
If it returns the market list (america, china, japan, etc.), the configuration is successful.
3. Start Using
Just ask questions in natural language, for example:
- "Help me select strong stocks from China A-shares"
- "Analyze the technical patterns of BTC/USDT"
- "How is the China A-share market today?"
- "I have 100k capital, want to buy a certain stock, how much should I buy?"
- "Generate today's China financial news briefing"
Usage Examples
Smart Stock Screening