BACK TO CLAUDE SKILLS
◈
mcp_read_chart_data
MCP IntegrationMCPData
INSTALLATION
$python -c "exec(open('mcp_read_chart_data.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Fetches raw OHLCV candle data from the currently active TradingView chart via MCP's `get_chart_data` tool. The function requests a configurable number of daily bars (default 365) and returns a normalized dictionary with `open`, `high`, `low`, and `close` arrays ready for downstream indicator functions.
Because it reads directly from the active chart window rather than a REST API, the data exactly matches what the trader sees — including any broker-adjusted prices or exchange-specific tick data. This eliminates discrepancies between external data feeds and the chart being analyzed.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryMCP Integration
ComplexityIntermediate
LanguagePython 3.10+
TagsMCP, Data
[ ASK CLAUDE ]
Ask AI about this skill before installing it.