How Much of an EA's Edge Is Just the Daily Volatility Cycle

How Much of an EA's Edge Is Just the Daily Volatility Cycle

27 十一月 2026, 02:08
Xiang Jun Jiang
0
6
TITLE: How Much of an EA's Edge Is Just the Daily Volatility Cycle

An expert advisor shows a profit factor of 1.4 over two years and the equity curve looks smooth. Before you deploy it, there is one question worth more than any parameter optimisation: how much of that profit is produced in the hours when the market moves, and would random entries in those same hours have done as well? If the answer is most of it, and yes, the EA is not a strategy. It is a position in volatility with a fee attached.

The measurement has three steps and requires no expensive tooling. First, decompose profit by hour of the server day. For every closed trade, record the entry hour and the R multiple. Group by hour, sum, and compute the profit factor per hour. The shape that emerges is usually bimodal: two clusters where the money is made, a long flat middle, and a negative tail around the rollover. That shape alone is not proof of overfitting to volatility, because a strategy may legitimately specialise in a session open. It is the starting point, not the answer.

Second, normalise by realised range. For each trade, measure the range of the hour before entry in ATR units, then bucket trades into quintiles of that range. Compute expectancy and profit factor per quintile. A genuine edge keeps a positive expectancy in at least three of the five quintiles. An edge that exists only in the top quintile is volatility beta: it is paid for being exposed when there is something to catch, not for predicting direction. The size of the effect is often startling. In one sample of four hundred trades on gold, the top quintile produced 2.1 times the profit of the other four combined, and the bottom two quintiles together were slightly negative after costs.

A concrete version of the table makes the pattern visible. Take the same four hundred trades and split them by hour and quintile. The quiet Asian hours land almost entirely in quintiles one and two, with an expectancy of minus 0.04 R and a win rate of forty-one percent. The London open sits in quintiles three and four, expectancy plus 0.18 R. The New York session produces the top quintile, expectancy plus 0.31 R, but with a standard deviation three times larger. The strategy's headline result of plus 0.16 R per trade is simply the weighted average of three different businesses. Trading only the last two hours of that table would have produced the same profit with a third of the trades, which is worth more than any optimisation of entry parameters.

Third, run the control. For each trade, generate twenty counterfactual entries at the same hour on randomly chosen days within the same quintile, and apply the same exit rule and the same costs. If the counterfactual distribution has a mean close to the EA's mean, the EA adds nothing beyond timing its exposure. This is the step people skip, and it is the step that decides the question. The control is cheap: the entry is random, the exit is identical, the sample is twenty times larger, and it can be run in the tester with a shuffled entry list rather than with new code.

The reason all of this matters is regime change. A volatility-beta system performs beautifully through an expansion and then dies quietly in a compression, not because it stopped working, but because the thing it was measuring went away. That failure mode is uniquely dangerous because nothing in the trade log signals a bug: the strategy takes the same trades with the same rules and simply loses. If you know the decomposition you can handle it: scale position size with the volatility quintile rather than with constant risk, and stop trading in the bottom quintiles where expectancy is negative anyway. That single change often turns a marginally positive system into a stable one, and it is derived from data you already have.

There is a subtle trap in the normalisation. ATR of the entry hour is not independent of the entry itself, because most entry rules trigger inside moves, so range and trade are correlated by construction. To reduce the artifact, measure the range of the hour before entry rather than the entry hour, and use a volatility measure that excludes the trigger bar. Otherwise part of what you call the volatility quintile is just your own entry condition restated, and the analysis becomes circular.

A second trap is what the control actually discounts. Random entries in the same hour share the same spread, the same session drift, and the same swap, so the counterfactual isolates timing skill relative to that baseline. That is exactly what is wanted, but it means a strategy can beat the control and still lose money if the whole session is expensive. Always report both numbers: edge over the control, and absolute expectancy after costs. A strategy with plus 0.10 R over control and minus 0.05 R net is a skill that cannot pay the rent.

What to do with the result depends on which case you are in. If the edge survives normalisation in three or more quintiles, you have a genuine timing component and the hourly decomposition is only a sizing guide. If it survives in one or two, treat the strategy as a volatility harvester: cap it, size it by the volatility measure, and expect it to be flat when the market is quiet. If the control matches the strategy, retire it and save the commission. All three outcomes are useful, and none of them requires more data than the trade log you already exported.

One more measurement is worth the twenty minutes it takes. Split the sample in half by date, run the quintile analysis on the first half, and check whether the same quintiles carry the same sign in the second half. If the pattern flips, the quintile effect was noise fitted to the sample. If it holds, you have something that behaves like a property of the instrument rather than a property of the optimiser. This simple split is the difference between a filter and a superstition, and it is the only validation that costs nothing but time.

There is also a cheaper live proxy worth keeping on the chart. Compute the twenty-day average of the same volatility measure you used in the quintile analysis, and compare today's reading with it. If today is below the fortieth percentile, the strategy is operating in the bottom quintiles, which in the sample above carried negative expectancy. That single number, updated once a day, is enough to switch the EA off without waiting for the equity curve to tell you what the regime already knew. Traders who dislike regime filters usually object that they miss the start of expansions; that is true, and it is also why the rule is used for switching off in the quietest zone rather than for switching on at the first sign of life.

The practical output of this exercise is not a verdict but a specification: for each hour bucket and each volatility quintile, the expected R, the number of trades, and the cost per trade. That table is what you need to decide whether to run the EA tomorrow. A strategy that is right for two hours and two volatility states a day is a perfectly good strategy. It is simply not the one described in the marketing text. Knowing which one you own is the whole game.