Skip to main content
Glama
kumarakshay2456

tradingview-mcp-india

backtest_strategy

Backtest trading strategies on historical stock data, evaluating performance with institutional-grade metrics. Supports RSI, MACD, Bollinger Bands, and other strategies.

Instructions

Backtest a trading strategy on historical data with institutional-grade metrics.

Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, THYAO.IS, ^GSPC) strategy: rsi | bollinger | macd | ema_cross | supertrend | donchian period: '1mo', '3mo', '6mo', '1y', '2y' initial_capital: Starting capital in USD (default $10,000) commission_pct: Per-trade commission % (default 0.1%) slippage_pct: Per-trade slippage % (default 0.05%) interval: '1d' (daily) or '1h' (hourly) include_trade_log: Include full per-trade log (default False) include_equity_curve: Include equity curve data points (default False)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
strategyYes
periodNo1y
initial_capitalNo
commission_pctNo
slippage_pctNo
intervalNo1d
include_trade_logNo
include_equity_curveNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses that the tool runs a backtest on historical data, optionally including trade log and equity curve. It implies a read-only computation. Without annotations, this is sufficient, though it could mention data sources or performance characteristics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with a clear one-sentence summary followed by an Args list. Slightly verbose but all information is relevant and efficiently presented.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers inputs thoroughly but does not describe the output structure beyond mentioning 'institutional-grade metrics' and optional logs. Without an output schema, the description should provide more detail on return format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description provides comprehensive parameter documentation with examples (e.g., symbol examples, strategy list, period options), default values, and units. This adds significant meaning beyond the schema, which only has types and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Describes the tool as backtesting a trading strategy on historical data with institutional-grade metrics. The verb 'backtest' and resource 'strategy' are specific, but the description does not differentiate from closely related siblings like 'compare_strategies' or 'walk_forward_backtest_strategy'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives. The description lists parameters but does not provide context for strategy selection, period, or comparison with other backtesting tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kumarakshay2456/tradingview-mcp-india'

If you have feedback or need assistance with the MCP directory API, please join our Discord server