Empirica Lab

No setups. No signals. A validation pipeline for testing trading ideas before they cost real money. Educational content, not financial...
Location hidden
•Created byProfile pictureEmpirica Lab
18 joined
Profile picture
Empirica LabProfile picture@empiricalab·Nov 12
Pinned post

Research Teardown: How Transaction Costs Change Strategy Viability

Research Teardown: How Transaction Costs Change Strategy Viability


In this case study, we examine how execution latency and spread costs flip profitable backtests into losses.


1. Friction & Slippage Breakdown

  • Spread Costs & Latency: Assuming zero delay or fill at quote midpoint systematically overstates Sharpe ratios by 0.4–0.8.

  • Commissions & Financing Rules: Slippage, commission, and overnight holding rules degrade edge significantly.

  • Walk-Forward Validation: Walk-forward testing concepts show rapid decay when realistic institutional costs are factored in.


# Realistic friction simulation
def apply_execution_costs(returns, turnover, slippage_bps=1.5, comm_per_contract=0.85):
    cost_per_trade = (slippage_bps * 1e-4) + (comm_per_contract / contract_notional)
    return returns - (turnover * cost_per_trade)


Every month in Empirica Lab Membership, we release full Python source code and validation pipelines for new strategies tested against realistic institutional costs. If you want full access to the strategy library and ongoing updates, join here:

Profile picture
Empirica LabProfile picture@empiricalab·Nov 11
Pinned post

Strategy Teardown: Testing Edge vs Execution Costs

Strategy Teardown: A Breakout Rule Tested Across 5 Prop-Firm Cost Regimes


1. The Hypothesis

Breakout strategies on high-volatility intraday pairs often show stellar equity curves on basic paper backtests. The hypothesis: persistent trend continuation after session range expansion yields edge—but only if crossing the bid-ask spread and financing costs don't completely erode the expectancy.


2. Why Standard Backtests Fail

Most retail backtests assume execution at the nominal bar close with zero slippage or fixed mid-market fills. Under realistic prop-firm conditions, sudden liquidity vacuums, tiered commission models, and wide rollover spreads turn a simulated 1.8 Sharpe ratio into negative territory.


3. Accounting for Transaction Costs & Friction

We tested this breakout setup across 5 distinct prop-firm cost regimes, incorporating realistic dynamic slippage models, floating spread expansion during session open, and round-turn platform commissions.


4. Systematic Workflow & Risk Guardrails

  • Fixed percentage risk per trade with dynamic volatility-adjusted stop placements.

  • Hard equity draw stops and volume-weighted execution windows.

  • Validation across independent out-of-sample stress periods.


---


Every month we release one fully tested strategy with executable code, realistic cost models, and strict risk guardrails. You can join at

Profile picture
Empirica LabProfile picture@empiricalab·Nov 11
Pinned post

Monthly Strategy Validation & Code: November Release

Focusing on the upcoming monthly strategy release with backtest rules and Python code:


Empirica Lab Membership delivers complete quantitative trading blueprints on the first Monday of each month. Members receive the exact backtest rules, clean Python code, realistic execution cost models, and strict stop rules.


Unlock the monthly releases and get the full strategy files: