Skip to main content
Glama
GlynnCarson

tradingview-mcp

by GlynnCarson

bracket_sweep

Read-only

Grid-search reward:risk and ATR multiple pairs for bracket orders, then verify neighbor profitability to distinguish stable edges from noise.

Instructions

Grid-search bracket parameters (rr × atr_mult) with a stability verdict.

Runs every combination on the same Binance data (candles and signals are computed once) and checks whether the best cell's NEIGHBORS are also profitable — a profitable cell surrounded by losers is noise, not edge. Verdicts: STABLE_CANDIDATE | FRAGILE | NO_EDGE.

Args: symbol: Binance pair, e.g. BTCUSDT strategy: squeeze_breakout | ema_momentum interval: 1m | 3m | 5m | 15m | 30m | 1h | 4h | 1d days: History window, 1-730 (default 180) direction: both | long | short rr_values: Reward:risk grid values (default [1.0, 1.5, 2.0, 3.0], max 8) atr_mult_values: Stop-distance grid in ATR multiples (default [1.0, 1.5, 2.0, 3.0]) max_hold_bars: Time-stop in bars (default 60) fee_pct: Fee % per side (default 0.05) slippage_pct: Slippage % per side (default 0.02) regime_filter: Gate signals by anchor trend (see bracket_backtest) regime_anchor: Anchor symbol (default BTCUSDT; "self" = traded pair) regime_interval: Anchor timeframe (default 4h)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
symbolYes
fee_pctNo
intervalNo1h
strategyNosqueeze_breakout
directionNoboth
rr_valuesNo
slippage_pctNo
max_hold_barsNo
regime_anchorNoBTCUSDT
regime_filterNo
atr_mult_valuesNo
regime_intervalNo4h
Behavior5/5

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

The description adds significant context beyond annotations: runs on same Binance data, computes once, checks neighbor profitability, and defines verdicts. No contradiction with annotations.

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?

The description is well-structured with a summary followed by an Args list, but is somewhat lengthy; could be slightly more concise.

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

Completeness4/5

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

Covers algorithm, verdicts, and parameters well, but lacks details on return format or output structure.

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?

With 0% schema coverage, the description fully compensates by listing all parameters with defaults, constraints, and roles, adding meaning beyond the bare schema.

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

Purpose5/5

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

The description clearly states the tool performs a grid-search over bracket parameters (rr × atr_mult) with a stability verdict, distinguishing it from related tools like bracket_backtest 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 Guidelines4/5

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

The description explains the tool is for parameter optimization and stability checking, but does not explicitly mention when not to use it or provide direct comparisons to alternatives.

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/GlynnCarson/tradingview-mcp'

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