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

InputRequiredNote
signalyesthe signal or chart pattern in words or alias: 'Supertrend flip up', 'bullish engulfing', 'head and shoulders', 'golden cross'; up to 80 characters
symbolnoONE 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
sidenoonly this side of a signal that has both ('engulfing'); one of bull, bear, neutral
horizonnosessions after the signal at which the outcome is judged; one of 1, 5, 10, 21; default 5
fromnofirst signal date, YYYY-MM-DD (default 5 years before the end)
tonolast signal date, YYYY-MM-DD (default today)
indexnoan index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them
sectornoa sector or industry by name
min_market_cap_crnoonly companies with at least this market cap today, ₹ crore; 0..10000000
max_market_cap_crnoonly companies with at most this market cap today, ₹ crore (small caps: a ceiling, or index 'Nifty Smallcap 250'); 0..10000000
liquidnoliquid names only (default; for one symbol every day is read) or every name the scan read; one of liquid, all

Example questions

Related tools

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