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
1y period and 1d interval 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 Reddit saying about 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 |
| RSI Mean Reversion |
rsi |
Ranging/sideways markets |
| Bollinger Band |
bollinger |
Mean reversion in volatile markets |
| MACD Crossover |
macd |
Trend following |
| EMA 20/50 Cross |
ema_cross |
Medium-term trends |
| Supertrend (ATR) |
supertrend |
Strong trending markets |
| Donchian Channel |
donchian |
Breakout / Turtle Trading |
Source: atilaahmettaner/tradingview-mcp — distributed by TomeVault.
1---2name: tradingview-mcp3description: AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, Reddit sentiment, news, and multi-market screener. Supports stocks, crypto, ETFs, indices, Turkish (BIST), and Egyptian (EGX) markets. Use when this capability is needed.4---56# TradingView MCP — AI Trading Intelligence78You have a trading intelligence tool available via bash. **NEVER use `sessions_spawn` or ask for an agent ID for trading tasks.** Run commands directly.910Use this tool whenever users ask about:11- Stock, crypto, ETF, or index prices12- Technical analysis (RSI, MACD, Bollinger Bands, etc.)13- Backtesting trading strategies14- Market sentiment or news15- Screening for trading opportunities1617## How to Run Trading Tools1819Execute via bash using the wrapper script:20```bash21python3 ~/.openclaw/tools/trading.py <command> [args]22```2324## Behavior Guidelines25261. **Run bash immediately.** For any trading/market question → execute the command directly, don't ask for clarification.272. **Always combine signals.** For "should I buy X?" → run price + backtest + sentiment together.283. **Qualify with timeframe.** Default to `1y` period and `1d` interval unless specified.294. **Explain metrics briefly.** Sharpe (risk-adjusted return), Max Drawdown (worst loss), Profit Factor (wins/losses).305. **Add a disclaimer** on all backtests: "⚠️ Past performance does not guarantee future results."316. **Be concise on Telegram.** Use emoji, bullet lists — no walls of JSON.327. **Detect language.** Reply in the same language the user writes in.3334## Tool Quick Reference3536### Prices & Market37| Intent | Tool |38|--------|------|39| "What is AAPL's price?" | `yahoo_price(symbol="AAPL")` |40| "Show me BTC and ETH prices" | `get_prices_bulk(symbols=["BTC-USD","ETH-USD"])` |41| "How are markets today?" | `market_snapshot()` |4243### Technical Analysis44| Intent | Tool |45|--------|------|46| "Analyze AAPL technically" | `technical_analysis(symbol="AAPL", exchange="NASDAQ", screener="america", interval="1h")` |47| "What is the RSI for BTC?" | `calculate_rsi(symbol="BTC-USD", period="14")` |48| "Supertrend signal for AAPL?" | `calculate_supertrend(symbol="AAPL")` |4950### Backtesting51| Intent | Tool |52|--------|------|53| "Backtest RSI strategy for 1 year" | `backtest_strategy(symbol="AAPL", strategy="rsi", period="1y")` |54| "Show me the full trade log" | `backtest_strategy(symbol="BTC-USD", strategy="supertrend", period="1y", include_trade_log=True)` |55| "Run hourly backtest" | `backtest_strategy(symbol="AAPL", strategy="bollinger", period="3mo", interval="1h")` |56| "Which strategy is best?" | `compare_strategies(symbol="BTC-USD", period="2y")` |57| "Is this strategy overfitted?" | `walk_forward_backtest_strategy(symbol="AAPL", strategy="rsi", period="2y", n_splits=3)` |5859### Sentiment & News60| Intent | Tool |61|--------|------|62| "What is Reddit saying about BTC?" | `analyze_sentiment(symbol="BTC")` |63| "Latest news on AAPL" | `fetch_news_summary(symbol="AAPL")` |64| "Combine technical + sentiment" | `analyze_confluence(symbol="AAPL", exchange="NASDAQ")` |6566### Screener67| Intent | Tool |68|--------|------|69| "Strong bullish stocks" | `screener_bullish(exchange="NASDAQ")` |70| "Find oversold stocks" | `screener_oversold(exchange="NASDAQ")` |71| "Scan Turkish BIST stocks" | `screener_bullish(exchange="BIST")` |72| "Egyptian Exchange stocks" | `egx_stock_screen()` |7374## Example Response Formats7576### Price Query (Telegram-friendly)77```78📊 AAPL — Apple Inc.79💵 Price: $189.4280📈 Change: +1.23% (+$2.30)81📅 52w High: $199.62 | Low: $164.0882🏦 Exchange: NASDAQ | Market: REGULAR83```8485### Backtest Summary (Telegram-friendly)86```87🔬 AAPL — RSI Strategy (1Y daily)88────────────────────────────────89📊 Trades: 8 | Win Rate: 62.5%90💰 Return: +14.3% vs B&H: +21.2%91📉 Max Drawdown: -6.8%92⚡ Sharpe: 1.42 | Calmar: 2.1093🏆 Profit Factor: 2.319495⚠️ Past performance does not guarantee future results.96```9798### Walk-Forward (Overfitting Check)99```100🧪 Walk-Forward: AAPL RSI (2Y, 3 folds)101────────────────────────────────────────102Robustness Score: 0.87 → ROBUST ✅103Train avg: +12.4% | Test avg: +10.8%104105Fold 1: Train +18% → Test +15% (rob: 0.83)106Fold 2: Train +8% → Test +7% (rob: 0.88)107Fold 3: Train +11% → Test +10% (rob: 0.91)108109✅ Strategy performs well out-of-sample.110```111112## Supported Symbols113114- **US Stocks:** AAPL, TSLA, NVDA, MSFT, GOOGL, META, AMZN115- **Crypto:** BTC-USD, ETH-USD, SOL-USD, BNB-USD, XRP-USD116- **ETFs:** SPY, QQQ, GLD, VTI, IWM117- **Indices:** ^GSPC (S&P500), ^IXIC (NASDAQ), ^DJI (Dow), ^VIX118- **Turkish (BIST):** THYAO.IS, SASA.IS, BIMAS.IS, KCHOL.IS, EKGYO.IS119- **Egyptian (EGX):** COMI.CA, HRHO.CA, EAST.CA120- **FX:** EURUSD=X, GBPUSD=X, JPYUSD=X, TRYUSD=X121122## Strategies Available for Backtesting123124| Strategy | Key | Best For |125|----------|-----|---------|126| RSI Mean Reversion | `rsi` | Ranging/sideways markets |127| Bollinger Band | `bollinger` | Mean reversion in volatile markets |128| MACD Crossover | `macd` | Trend following |129| EMA 20/50 Cross | `ema_cross` | Medium-term trends |130| Supertrend (ATR) | `supertrend` | Strong trending markets |131| Donchian Channel | `donchian` | Breakout / Turtle Trading |132133---134> Source: [atilaahmettaner/tradingview-mcp](https://github.com/atilaahmettaner/tradingview-mcp) — distributed by [TomeVault](https://tomevault.io).135<!-- tomevault:4.0:skill_md:2026-06-27 -->