FREE FINANCIAL EDUCATION
Time-of-day strategy evaluation
Compare strategy outcomes across predeclared session windows.
What you will learn
Prerequisites: Trade samples, weighted averages and net costs.
- Compare strategy outcomes across predeclared session windows.
- Compute an overall mean weighted by each window’s trade count.
- Avoid selecting the best window after repeatedly searching the same sample.
Mechanism and decision rules
Intraday conditions can differ around the open, midday and close, including spread, volume, volatility and event frequency. A strategy evaluation can stratify trades by fixed entry windows to see where assumptions hold. Define windows before examining results, and retain both gross outcomes and execution costs. A window with strong gross movement can still have weak net results if fills are expensive.
The overall mean must weight each subgroup by its number of observations. Averaging subgroup means equally can misrepresent a sample with unequal counts. Window comparisons also create a selection problem: trying many boundaries and reporting only the best one can fit noise. Validate any resulting time filter on separate periods.
Worked example · synthetic data
A synthetic sample has 20 opening trades with net mean ₹0.30 per unit,40 midday trades with −₹0.05 and 20 closing trades with ₹0.10. Total net outcome is 20×0.30+40×(−0.05)+20×0.10=₹6 across 80 one-unit trades, so overall mean ₹0.075.
An unweighted average of the three means is ₹0.1167, overstating the sample’s actual average because the weaker midday group is larger. The subgroup pattern can motivate a time-filter hypothesis, but it is not enough to declare the open permanently profitable.
Failure modes and limits
Different windows may contain different instruments or setup types, creating confounding. Trades can be correlated within days. Removing a window changes the opportunity set and may alter capacity. Clock-time definitions need timezone and holiday handling, especially when linking markets.
Practice case
Ten morning trades average ₹1 net and 30 afternoon trades average −₹0.20. Compute total P&L for one unit each and the weighted mean. Compare with the simple average of subgroup means.
Reveal the worked answer
Total is 10−6=₹4 across 40 trades, mean ₹0.10. The simple subgroup average is (1−0.2)/2=₹0.40, which gives the smaller morning group too much weight. Use observation counts for the actual sample mean.
Check your understanding
Sources and next steps
The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.
Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library
