tradingview-mcp
它能做什么
它运行一组市场工具,用于查询多个市场的价格、指标、回测和筛选。适合希望用通俗语言了解市场数据和分析的人。
适用场景
- ✓当你询问某只股票、加密货币或指数的当前价格时。
- ✓当你想了解某个交易策略在过去的表现时。
- ✓当你想查看市场机会筛选结果或新闻情绪时。
技能链接
https://github.com/atilaahmettaner/tradingview-mcp/blob/main/openclaw/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“Apple 现在的股价是多少?如果用简单移动平均线策略在过去一年操作它,结果会怎样?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行其市场工具,获取价格、指标和回测结果,然后用通俗的话解释结果。回测结果附有说明,提醒过去的表现不代表未来的结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
TradingView MCP — AI Trading Intelligence
You have a trading intelligence tool available via bash. NEVER use sessions_spawn or ask for an agent ID for trading tasks. Run commands directly.
Use this tool whenever users ask about:
- Stock, crypto, ETF, or index prices
- Technical analysis (RSI, MACD, Bollinger Bands, etc.)
- Backtesting trading strategies
- Market sentiment or news
- Screening for trading opportunities
How to Run Trading Tools
Execute via bash using the wrapper script:
python3 ~/.openclaw/tools/trading.py <command> [args]
Behavior Guidelines
- Run bash immediately. For any trading/market question → execute the command directly, don't ask for clarification.
- Always combine signals. For "should I buy X?" → run price + backtest + sentiment together.
- Qualify with timeframe. Default to
1yperiod and1dinterval unless specified. - Explain metrics briefly. Sharpe (risk-adjusted return), Max Drawdown (worst loss), Profit Factor (wins/losses).
- Add a disclaimer on all backtests: "⚠️ Past performance does not guarantee future results."
- Be concise on Telegram. Use emoji, bullet lists — no walls of JSON.
- Detect language. Reply in the same language the user writes in.
Tool Quick Reference
Prices & Market
| Intent | Tool |
|---|---|
| "What is AAPL's price?" | yahoo_price(symbol="AAPL") |
| "Show me BTC and ETH prices" | get_prices_bulk(symbols=["BTC-USD","ETH-USD"]) |
| "How are markets today?" | market_snapshot() |
Technical Analysis
| Intent | Tool |
|---|---|
| "Analyze AAPL technically" | technical_analysis(symbol="AAPL", exchange="NASDAQ", screener="america", interval="1h") |
| "What is the RSI for BTC?" | calculate_rsi(symbol="BTC-USD", period="14") |
| "Supertrend signal for AAPL?" | calculate_supertrend(symbol="AAPL") |
Backtesting
| Intent | Tool |
|---|---|
| "Backtest RSI strategy for 1 year" | backtest_strategy(symbol="AAPL", strategy="rsi", period="1y") |
| "Show me the full trade log" | backtest_strategy(symbol="BTC-USD", strategy="supertrend", period="1y", include_trade_log=True) |
| "Run hourly backtest" | backtest_strategy(symbol="AAPL", strategy="bollinger", period="3mo", interval="1h") |
| "Which strategy is best?" | compare_strategies(symbol="BTC-USD", period="2y") |
| "Is this strategy overfitted?" | walk_forward_backtest_strategy(symbol="AAPL", strategy="rsi", period="2y", n_splits=3) |
Sentiment & News
| Intent | Tool |
|---|---|
| "What is the news sentiment on BTC?" | analyze_sentiment(symbol="BTC") |
| "Latest news on AAPL" | fetch_news_summary(symbol="AAPL") |
| "Combine technical + sentiment" | analyze_confluence(symbol="AAPL", exchange="NASDAQ") |
Screener
| Intent | Tool |
|---|---|
| "Strong bullish stocks" | screener_bullish(exchange="NASDAQ") |
| "Find oversold stocks" | screener_oversold(exchange="NASDAQ") |
| "Scan Turkish BIST stocks" | screener_bullish(exchange="BIST") |
| "Egyptian Exchange stocks" | egx_stock_screen() |
Example Response Formats
Price Query (Telegram-friendly)
📊 AAPL — Apple Inc.
💵 Price: $189.42
📈 Change: +1.23% (+$2.30)
📅 52w High: $199.62 | Low: $164.08
🏦 Exchange: NASDAQ | Market: REGULAR
Backtest Summary (Telegram-friendly)
🔬 AAPL — RSI Strategy (1Y daily)
────────────────────────────────
📊 Trades: 8 | Win Rate: 62.5%
💰 Return: +14.3% vs B&H: +21.2%
📉 Max Drawdown: -6.8%
⚡ Sharpe: 1.42 | Calmar: 2.10
🏆 Profit Factor: 2.31
⚠️ Past performance does not guarantee future results.
Walk-Forward (Overfitting Check)
🧪 Walk-Forward: AAPL RSI (2Y, 3 folds)
────────────────────────────────────────
Robustness Score: 0.87 → ROBUST ✅
Train avg: +12.4% | Test avg: +10.8%
Fold 1: Train +18% → Test +15% (rob: 0.83)
Fold 2: Train +8% → Test +7% (rob: 0.88)
Fold 3: Train +11% → Test +10% (rob: 0.91)
✅ Strategy performs well out-of-sample.
Supported Symbols
- US Stocks: AAPL, TSLA, NVDA, MSFT, GOOGL, META, AMZN
- Crypto: BTC-USD, ETH-USD, SOL-USD, BNB-USD, XRP-USD
- ETFs: SPY, QQQ, GLD, VTI, IWM
- Indices: ^GSPC (S&P500), ^IXIC (NASDAQ), ^DJI (Dow), ^VIX
- Turkish (BIST): THYAO.IS, SASA.IS, BIMAS.IS, KCHOL.IS, EKGYO.IS
- Egyptian (EGX): COMI.CA, HRHO.CA, EAST.CA
- FX: EURUSD=X, GBPUSD=X, JPYUSD=X, TRYUSD=X
Strategies Available for Backtesting
| Strategy | Key | Best For |
|---|
常见问题
它能保证交易盈利吗?
不能。该技能会提醒你,过去的表现并不保证未来的结果。
涵盖哪些市场?
股票、加密货币、ETF、指数,以及土耳其 BIST 和埃及 EGX 等市场。
夏普比率告诉我什么?
它衡量风险调整后的收益,即为承担的每单位风险获得了多少收益。
详情
作者的原始描述
AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and multi-market screener. Supports stocks, crypto, ETFs, indices, Turkish (BIST), and Egyptian (EGX) markets.
热度
- GitHub 星标
- 5.2k
- 排名
- #15031
- 许可证
- MIT
- 更新时间
- 2026/10/29
评论
- …