SKILL.md--- name: tradingmcp description: AI Trading Intelligence — live prices, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves and licensed news sentiment (Marketaux). Supports stocks, crypto, ETFs, indices, Turkish (BIST), and Egyptian (EGX) markets. metadata: { "openclaw": { "emoji": "📈", "always": true, "homepage": "https://github.com/atilaahmettaner/tradingmcp" } } --- # TradingMCP — 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 - Backtesting trading strategies - Market sentiment or news ## How to Run Trading Tools Execute via bash using the wrapper script: ```bash python3 ~/.openclaw/tools/trading.py <command> [args] ``` ## Behavior Guidelines 1. **Run bash immediately.** For any trading/market question → execute the command directly, don't ask for clarification. 2. **Always combine signals.** For "should I buy X?" → run price + backtest + sentiment together. 3. **Qualify with timeframe.** Default to `1y` period and `1d` interval unless specified. 4. **Explain metrics briefly.** Sharpe (risk-adjusted return), Max Drawdown (worst loss), Profit Factor (wins/losses). 5. **Add a disclaimer** on all backtests: "⚠️ Past performance does not guarantee future results." 6. **Be concise on Telegram.** Use emoji, bullet lists — no walls of JSON. 7. **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()` | ### 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")` | ## 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 (Tel