Bad Ticks & Outliers
Bad ticks are erroneous data points — fat-finger prints, misfeeds, decimal errors, stale or off-market prices — that do not reflect a real tradeable market, and a single one can spike an indicator, trigger a stop or fire a breakout, creating a phantom signal that the backtest treats as genuine.
Quick answer: Bad ticks are erroneous data points — fat-finger prints, misfeeds, decimal errors, stale or off-market prices — that do not reflect a real tradeable market, and a single one can spike an indicator, trigger a stop or fire a breakout, creating a phantom signal that the backtest treats as genuine.
In simple words
A bad tick is a price in your data that is simply wrong: a typo, a glitch, a trade far away from the real market, or a spike that lasted a fraction of a second and could never have been traded at scale. The problem is that a backtest cannot tell a real move from a bad tick unless you clean it. One erroneous spike can cross a stop or set off a signal, generating a trade that should never have existed and distorting the whole result.
Purpose
Detecting and filtering bad ticks exists because raw market data is never perfectly clean, and an unfiltered outlier is indistinguishable to a backtest from a real opportunity, so it manufactures trades out of noise.
Professional explanation
Where bad ticks come from
Erroneous data has many sources: a trader entering the wrong price or quantity (a fat-finger error), a decimal or scaling mistake in a feed, a stale quote that did not update, an off-market print from a block or auction trade that does not reflect the continuous market, or a transmission glitch that garbles a value. Some are wildly obvious — a price ten times the real level — while others are just plausible enough to slip through. The defining feature is that no rational trader could have transacted meaningful size at that price at that moment, so it should not drive a trading decision.
How one bad tick becomes a phantom signal
A backtest computes signals mechanically, so it has no common sense about a price that is obviously wrong. A single spike high can register as a breakout and trigger an entry; a spike low can pierce a protective stop and book an exit that never happened; an outlier can inflate a volatility estimate or distort a moving average for the length of its window. Because the bad tick is often a large deviation, its effect on any threshold-based rule is disproportionate. The trade it creates is entirely fictitious, yet it enters the backtest's statistics as if it were real, biasing win rate, drawdown and expectancy.
Detection methods
Outlier detection blends simple range checks with statistical tests. A basic filter rejects prices outside a plausible band relative to the previous close, or moves larger than a multiple of recent volatility — for example a jump beyond several times the recent standard deviation of returns that immediately reverses. More refined approaches flag a tick that is inconsistent with the surrounding quotes, that has no corresponding volume, or that carries a non-standard trade condition marking it as off-market. The art is calibration: too loose and bad ticks survive, too tight and real gap moves — an earnings shock, a circuit move — are wrongly deleted as outliers.
Filtering without destroying real information
The danger of aggressive cleaning is that genuine large moves look exactly like bad ticks. A stock that legitimately gaps twenty percent on results, or an index that moves sharply on a policy announcement, must not be smoothed away, because those are precisely the events a robust strategy has to survive. Good practice distinguishes a transient spike that reverses within a tick or two from a sustained move to a new level, and it prefers to flag and review rather than silently overwrite. Corrections should be logged and, where possible, replaced with a defensible value such as the surrounding quote midpoint rather than an interpolation that invents a path.
Why it corrupts a backtest specifically
In live trading a human or a sanity check would usually ignore an obviously erroneous print, and exchange rules often cancel clearly mistaken trades. A backtest has none of that judgement, so an unfiltered bad tick is more dangerous in simulation than it would be in reality. This asymmetry means the backtest can show trades that could not have occurred live, systematically distorting results in a direction that depends on where the spikes fall. Cleaning bad ticks is therefore not cosmetic; it is what keeps the simulated market connected to the tradeable one.
Bad tick vs Real large move
| Aspect | Bad tick | Real large move |
|---|---|---|
| Duration | One or few ticks, then reverses | Sustained at the new level |
| Volume | Often none or trivial | Real volume transacts |
| Trade condition | May be off-market or flagged | Normal continuous trade |
| Correct action | Flag, filter or correct | Keep — it is genuine risk |
| Effect if kept | Phantom signal, false stop | Legitimate part of the test |
Practical example
Illustrative example (Indian market)
You backtest a Bank Nifty breakout system on intraday data with capital of Rs 5,00,000, entering long on a break above the prior swing high of 48,200. One tick in your feed misprints as 49,150 for a single instant before reverting to 48,190, an obvious fat-finger or feed glitch with almost no volume. Your unfiltered backtest reads that spike as a decisive breakout, enters long at around 49,150, and then watches price sit near 48,190 — an immediate paper loss of nearly 960 points that never corresponded to a real trade. Filtering the spike, because it lasted one tick, carried no volume and reversed instantly, removes the phantom entry entirely. Across a long intraday history, a handful of such uncaught spikes can dominate the strategy's apparent drawdown or, if they fall favourably, its apparent gains.
Illiquid NSE stocks and far out-of-the-money options are where bad ticks cluster, because a single stray order can print far from the real market and no offsetting volume corrects it quickly. A backtest on such instruments that does not filter outliers will generate phantom breakouts and stop-outs, and because the affected names are thin, those fictitious fills would also have been impossible to execute at size in reality.
Limitations
- Genuine gap moves on news look identical to bad ticks, so filtering can delete real risk
- Outlier thresholds require calibration; too loose keeps errors, too tight removes real events
- Illiquid instruments have both more bad ticks and thinner data to validate against
- Silent overwriting of a spike can hide a data-source problem that should be investigated
- A filter tuned on one instrument or regime may misclassify moves in another
Common mistakes
- Running a backtest on raw feed data without any outlier detection at all
- Filtering so aggressively that legitimate earnings gaps or circuit moves are smoothed away
- Replacing a bad tick by interpolation, which invents a price path that never occurred
- Ignoring volume and trade-condition flags that would distinguish a spike from a real move
- Assuming a clean vendor feed needs no checking, when even good feeds carry occasional errors
- Letting a single spike dominate volatility or drawdown statistics without investigating it
Professional usage
Professional data teams run outlier detection as a standard pipeline stage, combining range and volatility-based checks with volume and trade-condition filters, and they flag suspect ticks for review rather than silently deleting them. They deliberately preserve genuine large moves by distinguishing transient reversing spikes from sustained repricings, and they log every correction so the cleaning is reproducible and auditable. They also recognise that instruments cluster errors by liquidity, tightening scrutiny on thin names, and they cross-check a suspicious print against an independent feed before trusting or removing it.
Key takeaways
- A bad tick is an erroneous price at which no meaningful trade could really have occurred
- A single bad tick can trigger a phantom breakout, a false stop or a distorted indicator
- Detect outliers with range, volatility, volume and trade-condition checks, calibrated carefully
- Do not smooth away genuine news gaps or circuit moves — those are real risk the strategy must face
- Flag and log corrections rather than silently overwriting, and scrutinise illiquid names harder
Frequently asked questions
What is a bad tick?
How does a bad tick affect a backtest?
What is a phantom signal?
Where do bad ticks come from?
How do I detect bad ticks?
How do I tell a bad tick from a real gap?
Should I delete or correct a bad tick?
Can filtering bad ticks remove real information?
Why are illiquid instruments more prone to bad ticks?
Are bad ticks worse in a backtest than in live trading?
Do bad ticks affect daily data or only ticks?
How does volume help detect bad ticks?
What is an off-market print?
How do bad ticks relate to overall data quality?
Voice search & related questions
Natural-language questions people ask about Bad Ticks & Outliers.
What is a bad tick?
Why is one bad tick a big deal?
How do I spot a bad tick?
Can cleaning bad ticks hurt my data?
Are bad ticks worse in illiquid stocks?
Do daily bars have bad ticks too?
Sources & references
Last reviewed 12 July 2026. Educational content only — not investment advice. Markets and rules change; verify current conventions with SEBI, NSE/BSE and your broker.