Why Circuit Filters Are Critical in Backtesting a Trading System
- Jun 11
- 3 min read

A backtest can look brilliant on paper and still fail badly in real trading.
One major reason is simple: the backtest assumes you can buy and sell whenever your system gives a signal. But in the real market, that is not always true.
If a stock is locked in an upper circuit, you may not be able to enter.
If a stock is locked in a lower circuit, you may not be able to exit.
This one practical detail can completely change the real performance of a trading system.
What Is a Circuit?
A circuit limit is the maximum price movement allowed in a stock during a trading session. Once the stock hits that limit, trading can become one-sided.
For example:
- Upper circuit: Buyers are present, but sellers are not willing to sell. The stock is locked at the highest allowed price.
- Lower circuit: Sellers are present, but buyers are not willing to buy. The stock is locked at the lowest allowed price.
In both cases, liquidity disappears. And when liquidity disappears, your backtest assumptions become dangerous.
The Entry Problem: You Cannot Buy at Upper Circuit
Many momentum systems generate buy signals after a strong price move. The stock breaks out, volume expands, and the system says: “Buy.”
But what if the stock is already locked in upper circuit?
Your backtest may assume entry at the closing price or next day’s open. In reality, there may be no sellers. You place a buy order, but it does not execute.
This creates a big gap between backtested results and live results.
The backtest records a winning trade.
The real trader gets no position.
Over hundreds of trades, this can make a system look much better than it truly is.
The Exit Problem: You Cannot Sell at Lower Circuit
The bigger danger is on the exit side.
Suppose your system has a stop loss. The stock falls sharply and hits lower circuit. Your backtest assumes you exited at the stop-loss price.
But in real life, if the stock is locked in lower circuit, there may be no buyers. Your sell order may remain pending. You are trapped.
The backtest shows a controlled loss.
The real trade may become a much larger loss.
This is especially important in small-cap, micro-cap, low-float, and illiquid stocks where circuits are more common.
Why Circuit Filters Matter
A circuit filter makes your backtest more realistic. It helps you avoid trades where execution is doubtful.
A good system should not only answer:
“Is this a good stock to buy?”
It should also answer:
“Can I actually buy it?”
“Can I actually sell it if things go wrong?”
That is the difference between a theoretical system and a tradable system.
How Circuit Filters Improve Backtesting
When you add circuit filters, your backtest becomes more honest.
For entries, you may avoid buying stocks that are at or near upper circuit. This prevents the system from taking fake trades that would not have been filled in real life.
For exits, you can test more conservative assumptions. For example, if a stock hits lower circuit, the backtest should not assume a clean exit unless there was enough liquidity and tradable volume.
This may reduce the backtest returns, but it improves reliability. And in trading, reliability is more valuable than beautiful but unrealistic numbers.
A Simple Practical Rule
A basic circuit filter can be:
- Do not enter if the stock is locked in upper circuit.
- Do not enter if the stock is very close to upper circuit and liquidity is poor.
- Treat lower circuit exits conservatively.
- Avoid stocks with repeated circuits.
- Give extra importance to volume and delivery liquidity.
This is not about making the system complicated. It is about respecting market reality.
The Hidden Risk in Backtests
Most backtests fail because they are too clean.
They assume perfect entries, perfect exits, no slippage, no liquidity issues, and no execution problems. But real trading is messy. Orders do not always fill. Prices jump. Circuits lock. Liquidity vanishes exactly when you need it most.
A backtest without circuit filters may be measuring opportunity.
A backtest with circuit filters is closer to measuring tradability.
That difference matters.
Final Thought
Circuit filters are not optional, especially for systems trading fast-moving stocks. If your strategy buys strength, upper circuits can block your entry. If your strategy uses stop losses, lower circuits can block your exit.
So before trusting any backtest, ask one important question:
“Could I have actually taken these trades in the real market?”
If the answer is no, the backtest is not telling the full truth.
A strong trading system is not just profitable in Excel. It must be executable in the real market. Circuit filters help bridge that gap.




Comments