---
title: "signal_backtest: Signal backtest — eqdoc MCP tool"
description: "How a chart signal or pattern fared in the past, market-wide or for one company with each dated signal: win rate, returns, excess over the Nifty."
url: "https://eqdoc.com/mcp/tools/signal_backtest"
---

# signal_backtest: Signal backtest

How a chart signal or pattern fared in the past, market-wide or for one company with each dated signal: win rate, returns, excess over the Nifty.

## What it returns

How a chart signal fared in the past: the number of signals, win rate, mean and median return and the excess over the Nifty, at the horizon you pick.

## Inputs

| Input | Required | Note |
|---|---|---|
| `signal` | yes | the signal or chart pattern in words or alias: 'Supertrend flip up', 'bullish engulfing', 'head and shoulders', 'golden cross'; up to 80 characters |
| `symbol` | no | ONE company (NSE ticker or BSE code): restricts the backtest to its own past signals and lists each with its date and what followed; up to 20 characters |
| `side` | no | only this side of a signal that has both ('engulfing'); one of bull, bear, neutral |
| `horizon` | no | sessions after the signal at which the outcome is judged; one of 1, 5, 10, 21; default 5 |
| `from` | no | first signal date, YYYY-MM-DD (default 5 years before the end) |
| `to` | no | last signal date, YYYY-MM-DD (default today) |
| `index` | no | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `sector` | no | a sector or industry by name |
| `min_market_cap_cr` | no | only companies with at least this market cap today, ₹ crore; 0..10000000 |
| `max_market_cap_cr` | no | only companies with at most this market cap today, ₹ crore (small caps: a ceiling, or index 'Nifty Smallcap 250'); 0..10000000 |
| `liquid` | no | liquid names only (default; for one symbol every day is read) or every name the scan read; one of liquid, all |

## Example questions

- Backtest a Supertrend flip up over the last 5 years at a 10-session horizon.
- How did the MACD bullish crossover fare on Reliance each time it appeared?
- What was the win rate of a 52-week high breakout in mid caps?

## Related tools

- [rule_backtest](https://eqdoc.com/mcp/tools/rule_backtest): Test your own rule on daily prices: trades, win rate, return against holding and the Nifty 50, drawdown, by year. Past only; costs not modelled.
- [pattern_record](https://eqdoc.com/mcp/tools/pattern_record): What followed a chart pattern in the past: market-wide, for one company, or every member of an index or sector ranked on its own record.
- [signal_screen](https://eqdoc.com/mcp/tools/signal_screen): Which companies showed a named chart signal, market-wide, on a date or in the last sessions: a Supertrend flip up, a MACD crossover, a 52-week high breakout.
- [indicator_screen](https://eqdoc.com/mcp/tools/indicator_screen): Which companies meet one or more technical conditions across the market: RSI, ADX, MACD, averages, Supertrend, crosses in N sessions, and / or.

## Data freshness

Prices and indicators are end of day, as of the last close. Company figures are as filed, each with its date. There are no live prices.

## More

- Part of the [Screening](https://eqdoc.com/mcp/tools#g-screening) group in the [tool reference](https://eqdoc.com/mcp/tools).
- [Set up the eqdoc MCP server](https://eqdoc.com/mcp) in Claude, ChatGPT, Cursor and other AI apps.
- [Limits and what each message means](https://eqdoc.com/mcp/docs/limits)

## Main sections

- [Home: ask the research desk](https://eqdoc.com/)
- [Stock screener](https://eqdoc.com/screener)
- [EqScore](https://eqdoc.com/eqscore)
- [Exchange filings](https://eqdoc.com/filings)
- [Results calendar](https://eqdoc.com/results-calendar)
- [Bulk and block deals](https://eqdoc.com/deals)
- [Stocks: the largest companies and A to Z](https://eqdoc.com/stocks)
- [Sectors](https://eqdoc.com/sectors)
- [Sector reading guides](https://eqdoc.com/guides)
- [Pricing](https://eqdoc.com/pricing)
- [Accuracy and verification](https://eqdoc.com/accuracy)
- [About eqdoc](https://eqdoc.com/about)
- [MCP server for AI tools](https://eqdoc.com/mcp)
- [Contact](https://eqdoc.com/contact)
