BACK TO CLAUDE SKILLS
◈
mcp_set_timeframe
MCP IntegrationMCPChart
INSTALLATION
$python -c "exec(open('mcp_set_timeframe.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Switches the active TradingView chart to a specified timeframe using MCP's `set_timeframe` command. Validates the timeframe string against supported values before sending the command to prevent silent failures when an unsupported interval is passed.
Designed to be called between symbol changes in multi-timeframe scan workflows. For example, a strategy that confirms signals on both the daily and 4-hour charts would call `mcp_set_timeframe("1D")`, collect data, then call `mcp_set_timeframe("240")` and collect again — all in a single automated loop.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryMCP Integration
ComplexityIntermediate
LanguagePython 3.10+
TagsMCP, Chart
[ ASK CLAUDE ]
Ask AI about this skill before installing it.