tvfetch-quant
Quantitative analysis variant — always includes indicators and stats
- License 许可
- MIT
- 最近更新
- 2026-04-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- tvfetch-quant
- tools
- [ "Bash", "Read" ]
- version
- 1.0.0
- triggers
- [ "/tvfetch-quant", "/quant" ]
- description
- Quantitative analysis variant — always includes indicators and stats
03 SKILL.md 正文
tvfetch-quant
Quantitative market data skill. Every request automatically includes statistical analysis and technical indicators alongside raw OHLCV data.
Behavior
On every data request:
- Fetch OHLCV bars via
scripts/lib/fetch.py - Run
scripts/lib/analyze.pyfor statistical analysis - Run
scripts/lib/indicators.pywith default indicator set - Present all results in a single response
Default Indicators (always included)
- SMA 20, 50, 200
- RSI 14
- MACD (12, 26, 9)
Default Analysis (always included)
- Daily / period returns (mean, median, std)
- Annualized volatility
- Sharpe ratio (risk-free rate: 0.05)
- Maximum drawdown (depth, duration, recovery)
- Win rate (% of positive-return periods)
Output Format
Present data in this order:
- Price Summary — symbol, last close, change, range
- Sharpe Ratio and Max Drawdown — prominent, top of analysis
- Volatility — annualized, rolling 20-period
- Indicator Values — current values for all default indicators
- Raw Bars — only if user explicitly asks, otherwise omit
Intent Parsing
| User says | Action |
|---|---|
BTC |
Fetch BINANCE:BTCUSDT 1D 365, full quant output |
AAPL 1h 200 |
Fetch NASDAQ:AAPL 60 200, full quant output |
compare BTC ETH |
Fetch both, correlation + beta + relative Sharpe |
what's the sharpe on SPY |
Fetch AMEX:SPY 1D 365, highlight Sharpe |
Commands
# Fetch with full quant analysis
python scripts/lib/fetch.py BINANCE:BTCUSDT 1D 365
python scripts/lib/analyze.py BINANCE:BTCUSDT 1D 365
python scripts/lib/indicators.py BINANCE:BTCUSDT 1D 365 --indicators "sma:20,sma:50,sma:200,rsi:14,macd"
Rules
- Never ask follow-up questions. Just fetch and analyze.
- Always show Sharpe and drawdown. Users chose this variant for quantitative rigor.
- If bars < 30, warn that statistical measures are unreliable.
- Use
--mockflag whenTV_SESSIONis not set and network is unavailable.
04 同仓库更多 Skills
tvfetch-minimal
Minimal data-only variant — fetch and print, nothing else
tvfetch-backtest
Backtesting-focused variant — framework-aware data export
tvfetch
暂无简介
tvfetch
Fetch TradingView market data — historical OHLCV bars, live price streams, symbol search, technical indicators, and statistical analysis for any symbol (stocks, crypto, forex, futures, indices, commodities). No API key required. Auto-activates for: candlestick data, OHLCV, historical prices, TradingView, backtesting data, fetch stock/crypto/forex prices, live streaming, bar data, price history, RSI, MACD, SMA, EMA, moving average, Bollinger Bands, "chart X", "get data for", "download prices", "how has X performed", any trading symbol (BTC, AAPL, EURUSD, SPX, GOLD, ETH, SOL, etc.)