5.61 What OHLC Bars Know, and Why It Still Doesn't Pay

Five-minute MNQ OHLC: bar portion skews a quote, timestamps rank variance, and EDGE reads the spread. Subtract two points and fourteen signal families leave no survivor.

5.61 What OHLC Bars Know, and Why It Still Doesn't Pay

A one-minute bar already carries a spread, a direction, and a clock. On Russell 3000 names through 2021, Ruslan Tepelyan's best model reads the sign of the next bar's volume-weighted average price, the volume-weighted price of the trades inside the bar, correctly on 72.29% of test minutes. David Ardia, Emanuele Guidotti, and Tim Kroencke estimate that bar's effective spread, the cost of trading away from the unobserved fundamental price, from the same four prints. Sasha Stoikov and his co-authors turn the candle body into a skew for a crypto market maker. Mathias Mesfin fills fourteen open-high-low-close-volume families at the next five-minute open on Micro E-mini Nasdaq futures and charges two points to round-trip. Zero of the fourteen clear every gate he set.

The candle body is a mean-reversion skew

Bar portion on their first printed BTC-USDT minute is −0.9529. The ratio is the body divided by the full range, on one-minute Binance perpetual bars, thirty names, from 1 Sep 2024 through 14 Oct 2024.

$$ \text{Bar portion}_t = \frac{\text{Close}_t - \text{Open}_t}{\text{High}_t - \text{Low}_t} $$

The numerator is the close minus the open, so the sign is the direction of the body. The denominator is the high minus the low, so a long wick shrinks the reading even when the close moved. When the range is positive the ratio sits between −1 and 1. A reading of 1 means the bar opened on its low and closed on its high. A reading of −1 means it opened on its high and closed on its low. A reading near 0 means the close came back to the open.

Open 58941.9, high 58941.9, low 58933.4, close 58933.8. The body is 58933.8 minus 58941.9, which is −8.1. The range is 58941.9 minus 58933.4, which is 8.5. Bar portion is −8.1 divided by 8.5, which is −0.9529. The bar opened at the high and closed almost at the low.

When the high equals the low the ratio is undefined. They never print a rule for that bar. Set it to 0 before it touches a quoter, the same call as the old article "Bar Portion Beats MACD: A Directional Skew for Crypto Market Making".

Next-bar average returns fall as bar portion rises, on a proportion 0.73 of the thirty coins. The proportion that rises with it is 0.00. A bar that closes on its high is followed, on average, by a lower next bar, so you mark the reference price down. MACD, the difference between a fast exponential moving average and a slow one, marks the reference up on that same up-bar. Drop the raw ratio into a MACD slot and the center moves the wrong way. The fitted slope has to come out negative.

This reversal is a crypto perpetual result, one-minute bars on a central limit order book. Re-estimate it on the venue you quote. A one-minute crypto perpetual and a five-minute Nasdaq future do not share the number. The old article also shows why the companion Sharpe of 0.78 cannot size the skew: that book is fully long or fully short, it charges no fees, and the printed volatility cannot sit beside a 45.84% gain in nine days. I am against sizing anything from that Sharpe. Use the sign of the bins.

The 72.29% was in the prices before the clock

Tepelyan trains on Russell 3000 one-minute bars for 2021, point-in-time index members, regular US hours. The target is the log change in the next bar's volume-weighted average price, standardized by the training-set mean and variance. Training runs through 9 Aug 2021, validation from 10 Aug through 7 Nov, and the test set from 8 Nov through 31 Dec. He drops any lookback window whose low is under 4 dollars or whose quietest bar has fewer than 30 ticks. The validation slice is about 1.3 million rows, 1,021 names, 63 days. About two-thirds of names fall out. A complete minute panel of the names he kept, one bar every minute after the 20-bar lookback, would be about 18 times larger. The fit is the busy minutes.

The new fields are the first time the high prints and the first time the low prints, each scaled so 0 is the open of the bar and 1 is the close of the bar. Timing surprise flags a bar whose high and low arrived in the wrong order for the sign of the body.

$$ S_t = 1\left[\operatorname{sign}(C_t - O_t) \cdot \operatorname{sign}(\tau_{H,t} - \tau_{L,t}) < 0\right] $$

The flag is 1 when the body's sign and the high-minus-low time's sign disagree, and 0 otherwise. An up bar that prints the low first and the high later is the ordinary path, and the flag stays off. Worked the other way: close 100.22, open 100.10, so the body sign is positive. The high timestamp is 0.25 and the low timestamp is 0.70. Their difference is −0.45, so that sign is negative. The product of the two signs is negative, and the flag equals 1. Price made the high in the first quarter of the minute, made the low later, and still closed above the open.

Directional accuracy is the share of minutes where the sign of the model's predicted mean matches the sign of the realized target. On the test set it is 71.889% from open, high, low, close, and past volume-weighted returns, 72.288% once volume, tick count, and bar shape are added, and 72.294% once the timestamps are added. The clock contributes 0.006 percentage points.

$$ \text{Odds} = \frac{\text{Accuracy}}{100 - \text{Accuracy}} $$

Correct calls divided by incorrect calls. The no-timing test model is 72.288 divided by 27.712, which is 2.6085. The full model is 72.294 divided by 27.706, which is 2.6093. The odds move by 0.03%. On the validation set his own comparison, basic features against the full set, runs from 2.54 to 2.59, about a 2% lift, and the no-timing model is already at 72.106%, which is 72.106 divided by 27.894, odds of 2.585. The full model on that set is 2.590. Round both to two decimals and they print as 2.59. The old article "Do Intra-Bar Timestamps Carry Alpha? OHLC + Timing Features" shows that one overlap, the previous close against the previous volume-weighted average price, already reproduces an R-squared near his 0.37. The hit rate lives in two prices that share a window. He chose the volume-weighted target partly because a trader who knows the next one is higher still needs a fill near the current one to collect it. He reports no costs and no orders.

The timestamps move the variance. Root mean squared error between the predicted variance and the realized squared error is 4.4752 without them and 4.2880 with them. The difference is 0.1872, and 0.1872 divided by 4.4752 is 4.18%. The non-timing features made this error worse than plain open-high-low-close, 4.4752 against 4.4261. He flags that and leaves it. Use the clock to rank variance. Leave the 72.29% untraded.

Four prices are the spread you subtract

The relative effective spread on a single trade is the full width, buyer or seller, as a fraction of the fundamental price.

$$ S = \frac{2 D (P - \bar{P})}{\bar{P}} $$

D is +1 when the buyer initiates and −1 when the seller initiates. P is the trade price. P-bar is the fundamental price you do not see. A buyer who lifts 100.05 while the fundamental price is 100.00 pays 2 times 0.05, divided by 100.00, which is 0.001, or 0.10%. Ten cents of full spread on a 100 dollar price. EDGE, the efficient discrete generalized estimator, replaces the missing fundamental price with open, high, low, and close log-prices.

The open building block, their equation (15), is that covariance with a correction for bars where the open landed on the high or the low, and for bars that were only a forward-filled previous close. The indicator r equals 0 on a forward-filled bar and 1 otherwise.

$$ S_o^2 = \frac{-8\,\mathbb{E}[(\eta_t - o_t)(o_t - c_{t-1})]}{\mathbb{P}[o_t \neq h_t,\, r_t = 1] + \mathbb{P}[o_t \neq l_t,\, r_t = 1]} $$

Eta is the average of the high and low log-prices. The numerator is minus eight times the average product of the mid-to-open log return and the open-to-previous-close log return. When trading is nearly continuous, the open rarely equals the high or the low and almost every bar has r equal to 1, so the two probabilities sum to about 2 and the leading factor collapses to minus four, the continuous estimator. When the open often is the extreme, the denominator shrinks and the estimate scales up. That correction is the reason a thin name does not get reported as a zero spread.

Desk example, not a stock they publish. Let the average product equal −0.0000045. The numerator is minus eight times that product, which is 0.000036. Give each probability in the denominator the value 0.40, so the denominator is 0.80. The squared spread is 0.000036 divided by 0.80, which is 0.000045, and the spread is the square root, 0.67%. The same numerator over a continuous denominator of 2.00 gives a squared spread of 0.000018 and a spread of 0.42%. The continuous formula is 0.25 percentage points light on this name.

They then blend two moment conditions. One is tighter when the spread is small relative to volatility. The other is tighter when the spread is large. The blend that minimizes the variance is a generalized method of moments weighting: each moment is weighted by the inverse of its variance.

$$ S_{\text{EDGE}}^2 = w_1 \mu_1 + w_2 \mu_2, \qquad w_i \propto \frac{1}{\mathrm{Var}[x_i]} $$

Mu-1 and mu-2 are the two moment estimates of the squared spread, and the weight on each is proportional to one over its variance, renormalized so the weights sum to 1. The tighter moment gets the larger vote. Worked: moment one has variance 4 and reads 0.000100. Moment two has variance 16 and reads 0.000064. The inverse-variance weights are 0.80 and 0.20. The blend is 0.80 times 0.000100 plus 0.20 times 0.000064, which is 0.0000928, and the spread is the square root, 0.96%. Their equation (25) prints the variances in the numerator, which swaps the weights to 0.20 and 0.80 and returns a squared spread of 0.0000712, a spread of 0.84%. That swap contradicts the minimization two lines above the printed weights. I use the inverse. The printed numerator may be a typesetting error.

A negative squared estimate is reset before you treat it as a cost.

$$ \hat{S} = \sqrt{\max\{0,\, \hat{S}^2\}} $$

The reported spread is the square root of the squared estimate, after a negative value has been replaced with zero. A squared estimate of −0.000004 becomes a reported spread of 0. On the hard sample from October 2003 through December 2021, that reset hits 34.15% of stock-months when the input is a daily bar, and 0.02% when the input is a minute bar. Pearson correlation with the trade-and-quote benchmark on that sample moves from 56.17% on daily bars to 88.79% on minute bars. Spearman rank correlation moves from 43.47% to 97.31%, and mean absolute percentage error from 23.68 to 5.17. The old article "Bid-Ask Spread From OHLC: The GMM Estimator That Beats Roll/CS" runs the comparison with Roll, Corwin-Schultz, and Abdi-Ranaldo. Carry the minute-bar estimate into the cost. It is an average over the window, not the spread on your size, and it leaves market impact out.

Two points erase the frequent families

The dashed line is two points of round-trip friction on Micro E-mini Nasdaq futures. The bars are Mesfin's gross points per trade, from 72,604 five-minute bars and 947 regular sessions, 09:30 to 16:00 US Eastern, December 2021 through August 2025. The signal is computed at the bar close. The fill is the next bar's open. Gap continuation, at 16.52 points gross on 22 trades, is left off the axis.

Gross points per trade for six MNQ five-minute families against a dashed line at two points. Opening-range long and the volatility-gap reversal clear the line. Asia expansion at 2.5 times, the liquidity-grab continuation, and the two faster Asia expansions do not. The liquidity-grab bar is the printed net plus two points.

$$ \text{Net} = \text{Gross} - 2 $$

Net points per trade equal the gross points the signal captures minus two points of friction, charged on every trade. Asia-session expansion at 2.5 times the rolling twenty-bar mean range, held six bars, prints 1.06 gross. Subtract 2.00 and the net is −0.94, which is the net in his table. The opening-range long, held fifteen bars, prints 4.82 gross and 2.82 net, on 447 trades, at a T-statistic of 1.50. A T-statistic here is the mean divided by the standard deviation of the trades, multiplied by the square root of the trade count. Gap continuation short prints 14.52 net at a T-statistic of 3.23 and stops on the count: 22 trades across three years, 12 then 6 then 4. The rest of the rows are the same subtraction. Liquidity-grab continuation nets −1.80, so adding the two points back leaves 0.20 gross, the bottom of the 0.20 to 0.80 points of directional content he states for that family. The volatility-volume-gap reversal, a day in the top third of the opening move, the overnight gap, and first-bar volume together, nets 1.37 at a T-statistic of 0.86. Volume-spike momentum on 2,119 up bars prints a net of −1.94 beside a T-statistic of +0.07. A negative mean and a positive T-statistic are not one series. That row may be misprinted.

$$ T = \frac{\bar{x}}{s}\sqrt{N} $$

The standard deviation s is the mean divided by the T-statistic, times the square root of N, rearranged. On the fifteen-bar opening-range long the net mean is 2.82, the T-statistic is 1.50, and N is 447. The square root of 447 is 21.142. Then 2.82 divided by 1.50 is 1.88, and 1.88 times 21.142 is a standard deviation of 39.75 points. A constant two-point cost does not change that standard deviation, so the gross mean of 4.82 would carry a T-statistic of 4.82 divided by 39.75, times 21.142, which is 2.56. Table 11 prints 1.50 in the gross column and 1.50 in the net column. Those two cells cannot both be the t-stat of the means printed next to them. I keep the net row from the table that says the figures are after two points of friction. I do not promote 2.56 into a pass: the net T-statistic is still 1.50, and the years do not agree.

The same table prints a gross T-statistic of −0.90 next to a gross mean of +1.06 on the 2.5-times expansion. The sign does not match the mean. The net mean on that row is −0.94, so the −0.90 belongs with the net if it belongs anywhere. He also writes that gross edge across the fourteen families sits near 0.07 to 1.50 points, and that the best gross at a favorable horizon is about 1.05 to 1.50. The same table prints 3.37, 4.82, and 16.52. I keep the table. The ceiling sentence and the table do not match.

The fifteen-bar paragraph splits that opening-range long into −1.42, +2.43, and +7.04 across 2022, 2023, and 2024. The year heatmap prints −1.3, +4.5, and +2.3 on the row labeled opening-range long, and it prints a negative cell in every year for gap continuation, against the table mean of +14.52. The heatmap and the paragraphs disagree. I do not blend them. His scatter of gross return against the T-statistic draws the two control strategies as stars near three points of gross and T-statistics near 3.5 and 4.2. The control tables print +15.77 points at a T-statistic of 5.83 for the regular-hours confluence signal, on 538 trades, and +5.77 at 5.15 for the London signal, on 289 trades. The scatter and those tables disagree. I keep the tables and treat the scatter as unreliable.

Those controls fire on a Gaussian mixture label, a classifier that buckets bars into a few drift-and-volatility states, and they hold for about an hour. They are not a fifteenth candle pattern. The old article "The Signal Ceiling: Why No Single-Bar OHLCV Edge Beats Costs in MNQ" walks the five gates he required together: a T-statistic of at least 2.0 out of sample, at least 30 trades, a positive net, the same sign in every year, and a permutation p-value under 0.05 where he runs one. A permutation p-value is the fraction of randomly reordered signal paths that beat the real path.

The Asia expansion at 1.5 times the mean range, scored on the next bar, is the row that shows the clock problem inside his own study. Gross is −0.27, net is −2.27, and the T-statistic is −10.96. The burst is over inside the bar that triggered the signal. The next open is a trade in the reversal.

Charge two points, and leave the signal flat

On this contract the two-point charge is 4 dollars a micro, and a gross of 1.06 points loses 1.88 dollars.

If you are quoting and the order book is not on the screen, skew the reference with bar portion and require the slope to be negative. If the book is on the screen, skew from inventory and from imbalance, and keep bar portion as the candle fallback. The one-minute crypto reversal is a different venue and a different clock from five-minute Nasdaq futures.

If you paid for the intra-bar timestamps, rank variance with them. The old article on the timestamps works the path: the same price range crossed in less time is a higher variance, which is what the 4.18% error drop is for. Do not flip a side because the model said the next volume-weighted price is higher. The fill that would have collected it was the previous bar's volume-weighted price.

Estimate the spread with EDGE on minute bars, using the inverse-variance weights, and add the commission and the slippage you pay. On this contract two points are 2 times 2 dollars a point, which is 4 dollars a micro, the figure Mesfin uses. A gross of 1.06 points is 2.12 dollars. Subtract 4.00 dollars and the trade is down 1.88 dollars, the same −0.94 points. I am against a fifteenth opening-range, gap, or volume-spike family on this instrument. The fourteen already failed a next-bar-open test with the cost stated in advance. A new one has to clear two points, a T-statistic of 2.0, thirty trades, and every year, on a clock you did not pick after seeing the result.

KEY POINTS

  • Compute bar portion as close minus open, divided by high minus low, before you skew a candle-only quote. Next-bar returns fall as the ratio rises on 0.73 of the thirty perpetual coins.
  • Do not size the 72.29% hit rate on the next bar's volume-weighted price. The timestamps add 0.006 percentage points of direction on the test set.
  • Estimate the effective spread with EDGE on minute bars, and weight the two moments by inverse variance. Correlation with the quote benchmark moves from 56.17% on daily bars to 88.79% on minute bars.
  • Subtract two points before a five-minute Micro E-mini Nasdaq signal is a candidate. Asia expansion at 2.5 times the mean range prints 1.06 gross and −0.94 net.
  • Reject gap continuation short on the count. The table prints a T-statistic of 3.23 on 22 trades, and the year heatmap prints the opposite sign.

References


A note on AI. The ideas, research, analysis, and conclusions in this article are my own. I use AI tools to help with editing and wordsmithing, because English is not my first language, and I am not shy about that. AI-generated ideas and AI-assisted writing are not the same thing: the first is empty slop from a generic prompt, the second is a tool for communicating years of real research more clearly. Judge the work by its substance, not by whether software helped polish the prose.