Intraday Cash Backtesting: Capital & Margin Utilisation Roadmap

Scope: Intraday cash market backtests (equities), focused exclusively on capital efficiency, margin utilisation, and deployment metrics.

Goal: Extend the LEAN engine within Wizzer to provide a best-in-class intraday backtesting experience where small intraday edges can be evaluated through the lens of capital deployed, margin blocked, leverage, and utilisation quality.

Why this matters

Intraday equity strategies often produce small per-trade edges. Whether these edges translate into meaningful ROI depends less on the signal itself and more on:

  • How much capital is actually deployed (gross exposure)

  • How much capital is blocked (margin utilisation)

  • How efficiently capital is recycled through the day (throughput)

  • How stable utilisation is (spikes vs consistent use)

Our Beta plan introduces a capital- and margin-centric evaluation suite so intraday strategies can be sized and compared on a truly actionable basis.

Beta deliverables (Jan-end)

The Beta release will include:

  • Intraday cash-market backtesting support using Wizzer’s LEAN-powered engine
  • A Capital Utilisation Tracker (new Wizzer layer) that records utilisation time-series during a backtest
  • A brokerage-aware cash intraday margin model (new Wizzer model) for India markets
    • A set of capital efficiency metrics and charts made available in results output
    • Implementation guidelines and extension APIs for strategy developers

1. Capital Utilisation Tracker (new Wizzer extension)

We will ship an engine extension that records the complete capital, exposure, and margin time-series during backtests.

1.1 Time-series captured (per minute / event-sampled)

At a configurable resolution (default: 1-minute), we will record:

  • Equity / Portfolio Value

  • Available Cash / Free Buying Power

  • Gross Exposure = Σ |qty × last_price|

  • Net Exposure = Σ (qty × last_price)

  • Blocked Margin / Reserved Buying Power (portfolio-level and per-security)

  • Leverage = gross_exposure / equity

  • Turnover (intraday cumulative traded notional)

  • Transaction Costs (fees + slippage)

1.2 Tracker output format

The tracker will export:

Time-series to result artifacts (CSV / JSON)

  • A summarised Capital Utilisation Report

  • Metrics exposed to UI charts

2. Capital & Margin Metrics (available in Beta)

All metrics below will be produced automatically for every intraday cash-market backtest.

2.1 Portfolio capital metrics

(Directly available / derived from LEAN state variables)

  • Starting Equity / Ending Equity

  • Total Net Profit (₹ and %)

  • Max Drawdown (₹ and %)

2.2 Deployment metrics (capital actually put to work)

(Derived from holdings and market prices)

  • Gross Exposure (time-series)

  • Net Exposure (time-series)

  • Average Gross Exposure (time-weighted)

  • Peak Gross Exposure

2.3 Margin utilisation metrics

(Using margin model + reserved buying power)

  • Margin Used (time-series)

  • Utilisation(t) = margin_used(t) / equity(t)

  • Average Utilisation (time-weighted)

  • Peak Utilisation

  • Idle Capital Ratio = 1 − avg_utilisation

2.4 Utilisation distribution metrics (quality of utilisation)

(New Wizzer metrics layer)

  • Utilisation percentiles (P50 / P75 / P90 / P95)

  • Spike frequency: count of utilisation spikes above a threshold (e.g., >80%)

  • Utilisation stability score: variance or coefficient-of-variation of utilisation(t)

2.5 Leverage metrics

(Derived from equity + exposure)

  • Leverage(t) = gross_exposure(t) / equity(t)

  • Average Leverage (time-weighted)

  • Peak Leverage

2.6 Capital throughput metrics

(New Wizzer metrics layer)

  • Total Traded Notional / Turnover

  • Capital Throughput = turnover / avg_margin_used

  • Exposure Throughput = turnover / avg_gross_exposure

2.7 Capital-efficiency return metrics

These enable comparing strategies fairly regardless of leverage or idle capital.

  • ROE (Return on Equity) = PnL / starting_equity

  • Return on Deployed Notional = PnL / avg_gross_exposure

  • Return on Utilised Margin = PnL / avg_margin_used

  • Utilisation-adjusted Return = ROE / avg_utilisation

2.8 Cost normalisation metrics

Intraday edges are cost-sensitive. We will report:

  • Total Costs / Turnover

  • Total Costs / Avg Margin Used

  • Total Costs / Avg Gross Exposure

  • Net Edge After Costs (basis points)

2.9 Margin stress metrics

To understand survival risk and capital strain:

  • Worst-case utilisation during drawdown windows

  • Utilisation–PnL correlation

  • Margin stress factor: peak utilisation occurring near equity troughs

3. Brokerage-aware Intraday Cash Margin Model (India)

LEAN provides a generic buying power model layer. For intraday cash-market accuracy, Wizzer will implement a brokerage-aware model.

3.1 What the model will support

  • Per-stock intraday leverage / MIS multipliers

  • Position concentration haircuts (optional)

  • Risk buffers / volatility add-ons (configurable)

  • Peak margin style add-on logic (simplified and extensible)

3.2 Configuration design

  • Default: Wizzer’s standard intraday equity margin rules

  • Optional: user-defined margin parameters per instrument / sector

  • Versioned margin policy snapshots for reproducible backtests

4. Portfolio-level capital allocation & constraint reporting

Even for single strategies, margin constraints impact fill probability and realised deployment.
We will add:

  • Order rejection / partial fill attribution (insufficient buying power)

  • Skipped trade reporting: signals that could not be executed due to margin constraints

  • Utilisation bottleneck detection: which instruments or timestamps caused utilisation peaks

5. Results UI and reporting outputs

Beta will ship with new result widgets focusing on capital efficiency.

5.1 Charts

  • Equity curve

  • Gross Exposure over time

  • Margin Used over time

  • Utilisation % over time

  • Leverage over time

  • Utilisation heatmap (optional)

5.2 Summary tables

  • Capital utilisation scoreboard

  • Margin stress report

  • Efficiency-normalised returns

  • Cost normalisation report

5.3 Export artifacts

  • Full time-series export (CSV / JSON)

  • Summary report export (PDF / HTML)

6. Implementation guidelines for strategy developers

To ensure capital utilisation metrics are meaningful, strategies should follow these guidelines.

6.1 Strategy constraints to declare

Strategies should explicitly specify:

  • Maximum target leverage (or max utilisation cap)

  • Max concurrent positions

  • Max per-symbol allocation

  • Re-entry and recycling behaviour

6.2 Execution modelling

To align utilisation and turnover with reality:

  • Use realistic fees and slippage models

  • Model liquidity constraints where applicable

  • Avoid assuming infinite order fills

6.3 Sampling resolution

  • Default 1-minute tracking for utilisation metrics

  • Higher-frequency tracking supported for high turnover strategies

7. Extension architecture (how we’ll implement this in LEAN)

7.1 Engine integration points

Wizzer will extend LEAN at these layers:

  1. Buying Power / Margin Model layer
    Custom intraday cash equity margin model
  2. Result Statistics & Reporting layer
    Capital utilisation metrics + throughput metrics
  3. Charting / Series layer
    Utilisation and margin time-series charts
  4. Execution / Transaction accounting layer
    Turnover tracking, cost normalisation, rejected-trade attribution

7.2 Backward compatibility

  • Existing LEAN strategy APIs remain unchanged

  • Extensions run as opt-in modules for Beta

8. Beta timeline (Jan-end)

  • Week 1: Intraday equity backtest enablement + portfolio state sampling

  • Week 2: Capital Utilisation Tracker + output artifacts

  • Week 3: India intraday margin model (MIS) + calibration

  • Week 4: UI charts + Capital Utilisation Report + developer guidelines

What success looks like

With this Beta release, strategy developers should be able to answer:

  • How much of my capital was truly deployed intraday?

  • How much margin did I consume, and for how long?

  • What was my return per unit margin and per unit exposure?

  • How efficiently did I recycle capital through turnover?

  • Was my utilisation stable or spiky, and why?

This makes intraday backtests actionable for real capital deployment.

Next steps

After Beta, we will expand this foundation to:

  • intraday futures and options margin models

  • multi-strategy shared-capital allocation

  • capacity modelling and liquidity-aware utilisation

  • scenario-based margin stress testing

For early access, pre-book and get 1 month free by signing up on Wizzer, or reach out to the Wizzer team on +91 89280 65586.