Backtesting and F&O glossary
The terms behind a backtest of Indian index options and MCX futures, defined plainly. Rates, lot sizes and expiry days change; each one here carries the date it took effect.
A
- Algo trading harness
- Software that runs a trading strategy inside a fixed, repeatable environment, the way a test harness runs code under test. Veloce is an algo trading harness in this sense: a strategy plugs in as a shipped strategy, as indicator rules or as a strategy spec, and the harness supplies the rest the same way every time: one-minute data resampled to the candle size, expiries and contract selection, fills at the next bar’s open, itemised costs and slippage, exit and risk stages, the portfolio, and reports and stored runs. The same strategy code runs unchanged in every backtest; paper and live trading are coming soon.
- The harness around a strategy
- At the money (ATM)
- The option strike closest to the underlying’s current price. Veloce rounds the close of the underlying’s last closed candle to the nearest strike step, half up, and counts other strikes as steps away from it.
- How strategies pick strikes
B
- BANK NIFTY
- NSE’s index of large banking stocks. Its options have been monthly only since its weekly contract was discontinued in November 2024, and they expire on the last Tuesday of the month for contracts expiring on or after 1 September 2025 (the last Thursday before). Strikes are 100 points apart. Veloce has BANK NIFTY options history from September 2025.
- NIFTY and BANK NIFTY options
- Brokerage
- The fee a broker charges for each executed order. Many Indian discount brokers charge a flat ₹20 per order for F&O. Veloce charges ₹20 on every fill, and GST on top of it.
- Charges on every fill
C
- Cash settlement
- Settling an expiring index option in money instead of delivering anything. An option held to expiry is worth its intrinsic value against the settlement price. Veloce settles options left open at expiry at intrinsic value against the underlying’s daily close, and charges no fees on that settlement.
- The backtesting engine
- Check period
- A later stretch of history kept out of tuning. A parameter sweep picks its best settings on the in-sample period and then reruns them on the check period, which they never saw, to show how much of the result survives.
- Parameter sweeps
- Closing auction
- A session at the end of the trading day in which orders are matched at one price to set the official close. Since NSE’s closing auction began on 3 August 2026, NIFTY’s one-minute bars stay flat from 15:15 and then jump to the official close, so Veloce’s index-option signals ignore candles that close after 15:15.
- How the engine handles it
- Commodity transaction tax (CTT)
- A tax on commodity derivatives, in force since 1 July 2013. The seller pays 0.01% of the traded value on non-agricultural futures such as gold, and 0.05% of the premium on sold commodity options. Veloce’s MCX futures schedule charges 0.01% on sells.
- MCX gold futures
- Credit spread
- Selling one option and buying another of the same type and expiry further from the money, for a net premium received. The most it can lose is the gap between the strikes, times the lot size, less the credit.
- The MACD credit spread strategy
D
- Drawdown
- How far equity has fallen from its highest point so far. Maximum drawdown is the deepest such fall over a backtest, the loss you would have had to sit through before the account recovered.
- Equity and drawdown in reports
E
- Exchange transaction charge
- What the exchange charges members on turnover, passed on to traders. Since 1 October 2024 NSE charges a flat rate on options premium, ₹3,503 a crore plus a ₹50 investor-protection contribution until 28 February 2026, merged into one ₹3,553 rate from 1 March 2026. BSE charges ₹3,250 a crore on SENSEX options premium and MCX ₹210 a crore on futures. Veloce’s options schedule uses 0.03503% and its MCX futures schedule 0.0021%.
- Charges on every fill
- Exit before expiry
- Closing a position a set number of days before its contract expires, to avoid expiry-day risk and settlement. Veloce’s iron condor and MACD credit spread exit one day before expiry by default.
- Risk and exits
- Expiry
- The last day a derivative contract trades. NIFTY 50 weekly options expire on Tuesday for contracts expiring on or after 1 September 2025, and on Thursday before that. BANK NIFTY options expire on the last Tuesday of the month and SENSEX weekly options on Thursday, also from 1 September 2025. When the day is a market holiday, expiry moves to the previous trading day.
- Expiry calendars
G
- GST
- Goods and services tax, 18% on brokerage, exchange transaction charges and the SEBI turnover fee. It is not charged on STT, CTT or stamp duty. Veloce adds 18% of those three charges to every fill.
- Charges on every fill
I
- In-sample period
- The history used to choose a strategy’s settings. Results on it are flattered by the choosing; only results on data the settings were not tuned on, such as a check period, say how they might hold up.
- Parameter sweeps
- Iron condor
- An options position of four legs on one expiry: a sold put and a sold call away from the money, and a bought put and call further out as wings, so the loss is capped. Veloce’s shipped iron condor sells strikes four steps from at the money with wings four steps wider, enters at 10:00 with at least five days to expiry, takes profit at half the credit, stops at twice the credit and exits a day before expiry.
- The iron condor strategy
L
- Lookahead bias
- Letting a backtest use information that was not yet available when the decision was made, such as filling at the close of the candle that produced the signal. Veloce labels bars by their open, acts on a bar only after it closes and fills at the next bar’s open.
- How the engine avoids it
- Lot size
- The number of units in one derivatives contract. NIFTY 50 is 65 from the January 2026 expiries (75 before), BANK NIFTY 30 from the same date (35 before), and SENSEX 20. MCX GOLD is 1 kg and GOLD MINI 100 g. Exchanges revise index lot sizes periodically. Veloce applies each underlying’s current lot size across its whole history, and holds positions in units, so a revision cannot change an open position.
- Lot sizes by market
M
- Margin
- Money blocked by the broker to hold a futures position or a sold option, set by the exchange’s risk model. Veloce does not compute exchange margin; its futures margin limit keeps futures within an amount you set as a share of each lot’s value, 10% by default for the gold futures strategy, and its cash limit keeps option buys within cash.
- Cash and margin limits
N
- Next-bar fill
- Filling an order at the open of the bar after the one that produced the signal. It is the earliest price a real order placed after seeing the signal could trade at, and it is how Veloce fills every order, before slippage.
- Fills in the engine
- NIFTY 50
- NSE’s benchmark index of 50 large companies, and since 20 November 2024 the only NSE index with weekly options. Strikes are 50 points apart. Veloce has NIFTY options history from June 2021.
- NIFTY options backtesting
O
- One-minute bar
- A candle covering one minute of trading: its open, high, low and close. It is the finest data Veloce uses; larger candles are built from it, and orders fill at a bar’s open.
- Resampling
- Overfitting
- Tuning a strategy so closely to past data that it fits noise rather than a repeatable pattern. An overfit strategy looks strong in-sample and weak on any period it was not tuned on.
- Checking a sweep
P
- Parameter sweep
- Running a backtest for every combination of the settings you vary, such as fast and slow average lengths, and ranking the results. Veloce ranks combinations by net P&L and reruns the best few on a check period.
- Parameter sweeps
- The price of an option, quoted per unit. The buyer pays premium times lot size; the seller receives it. STT and exchange charges on options are computed on premium turnover.
- Profit factor
- Gross profit of the winning trades divided by the gross loss of the losing ones. Above 1 means the winners made more than the losers lost.
- Trade statistics
R
- Resampling
- Building larger candles from smaller ones: a five-minute candle takes the first open, the highest high, the lowest low and the last close of its five one-minute bars. Veloce resamples one-minute history to the candle size a strategy asks for.
- Resampling in the engine
S
- SEBI turnover fee
- A fee SEBI levies on turnover: ₹10 a crore, or 0.0001%, on both buys and sells of equity and non-agricultural commodity derivatives. GST applies to it. Veloce charges it on every fill.
- Charges on every fill
- Securities transaction tax (STT)
- A tax on securities trades. From 1 April 2026 the seller of an option pays 0.15% of the premium, the buyer of an exercised option 0.15% of its intrinsic value, and the seller of a future 0.05% of its value. Before that, from 1 October 2024, the rates were 0.1%, 0.125% and 0.02%. Veloce charges 0.15% on option sells; it does not charge STT on options settled at expiry.
- Charges on every fill
- SENSEX
- BSE’s benchmark index of 30 companies. Its weekly options expire on Thursday for contracts expiring on or after 1 September 2025. Strikes are 100 points apart and the lot is 20. Veloce has SENSEX options history from September 2025.
- SENSEX options backtesting
- Average return divided by the volatility of returns, a measure of return per unit of risk. Veloce computes it from daily closing equity and annualises it over 252 trading days, without subtracting a risk-free rate.
- Headline numbers
- Slippage
- The gap between the price you expected and the price you got, from crossing the spread or moving the market. Veloce moves every fill against you by a number of ticks you set, one by default.
- Slippage on fills
- Square-off
- Closing every open position at a set time of day. Veloce’s option-buying strategies square off at 15:15 by default, the hedged straddle at 15:15, and the gold futures strategy at 23:15.
- Risk and exits
- Stamp duty
- A state levy on the buyer of a security, uniform across India since 1 July 2020: 0.003% of premium on options and 0.002% of traded value on futures. Veloce charges it on buys only.
- Charges on every fill
- Stop loss
- A rule that closes a position once its loss reaches a set amount. In Veloce the amount can be rupees or a share of the premium paid or the credit received. It is checked on each closed candle, and the exit fills at the next open.
- Stops and targets
- Straddle
- A call and a put at the same strike and expiry, usually at the money. Selling one collects both premiums and profits if the underlying stays near the strike. Veloce’s hedged straddle sells the at-the-money pair at 09:20, buys a call and put four strikes away, and buys back any sold leg that loses 30% of its premium.
- The hedged straddle
- Strategy spec
- A strategy written as data instead of code: its legs, entry signal and times, exits, risk limits and costs, in JSON. Veloce validates a spec before running it and builds the same strategy a shipped one would be.
- Strategy specs
- Strike step
- The gap between neighbouring option strikes. Veloce uses 50 points for NIFTY 50 and 100 points for BANK NIFTY and SENSEX.
- Strike steps by market
T
- Take profit
- A rule that closes a position once its profit reaches a set amount, in rupees or as a share of the premium paid or the credit received.
- Stops and targets
- Target position
- What a strategy wants to hold, in signed lots: plus for long, minus for short. Veloce strategies return targets, never orders; exit and risk stages review them, and only the difference from what is already held becomes an order.
- The replay loop
- Trailing stop
- A stop that follows the best profit so far and closes the position once it gives back a set amount from that peak, in rupees or as a share of the best profit. In Veloce it can be armed from entry or only after a set profit is reached.
- Trailing stops
W
- Win rate
- The share of closed trades that made money. On its own it says little: a strategy can win most trades and still lose overall if the losses are larger.
- Trade statistics
Run your first backtest
Create an account with a verified email and phone number, pick a strategy and a market, and see every fill, fee and day of P&L.