Line Break chart backtests: three-line reversals and the exit that waits
A Line Break chart adds a new line when the close moves beyond the previous line and reverses only when the close breaks the extreme of the last three lines. Line Break backtests overstate results by filling at the line's level and by treating a turning line as known at the previous extreme. AlphaPrime confirms each line at the close of the underlying bar, fills at the next real price with doubled slippage, and judges stops on the real high and low.
By Soren Huang · Published · updated · Editorial policy
Contents
- What is a Line Break chart, and why do its backtests overstate results?
- How is a Line Break line built, and when is it actually known?
- Where does a Line Break backtest see the future?
- Exiting at the top of the reversal line
- Entering at the line level
- Stops that only see closes
- How does AlphaPrime backtest a Line Break strategy?
- How do you choose the line count for backtesting?
- Which markets and strategies suit Line Break charts?
- Frequently asked questions
What is a Line Break chart, and why do its backtests overstate results?
A Line Break chart draws a new vertical line each time the close moves beyond the previous line in the trend's direction, and draws a reversal line only when the close breaks the extreme of the last three lines. Its backtests overstate results by filling at the line's drawn level instead of the price that was available when the line was confirmed.
The chart is usually called three line break, after the most common setting; the number is the count of prior lines a close must break to reverse. A line is a block from one close level to another; an up line is drawn when the close exceeds the top of the previous line, a down line when the close falls below its bottom. A reversal line is the first line in the opposite direction, and it is drawn only when the close has broken the low (in an uptrend) or the high (in a downtrend) of the last three lines together. Closes that fall between those levels draw nothing, and a close exactly equal to a level draws nothing either. Time is not shown.
That waiting rule is why Line Break trends look so clean and why Line Break exits are so slow. It is also where the backtest shortcut lives. The rules shared by all synthetic chart types are on the overview of why synthetic-bar backtests cheat; this page is the Line Break-specific part.
How is a Line Break line built, and when is it actually known?
A line is known at the close of the underlying bar whose close crossed the required level. Nothing else about the bar matters; the chart is built from closes only, so intrabar highs and lows never draw a line and never reverse one.
Three-line reversal is a high bar to clear. In an uptrend, the reversal level is the lowest low of the last three up lines, which in a steady trend can be far below the current price. Price can fall for several bars without the chart changing, and the trader holding a Line Break long is giving back all of that before the chart admits the trend has turned. The chart does not hide this; the finished chart shows a long up line followed by a reversal line, and the reversal line's top is the last up line's close, so it looks as if the exit happened near the top. The close that triggered it was at the bottom of the reversal line.
AlphaPrime (Valynox) builds Line Break lines from the underlying bars you choose and confirms every line at the close of the underlying bar whose close produced it. A reversal line becomes visible to the strategy at the close that broke the three-line extreme. The strategy can then exit at the next real price, which is near the bottom of that reversal line, not near its top.
Hypothetical example
Daily underlying bars, three-line setting. Three up lines close at 100, 104 and 109; the lowest low of the three is 97. Price drifts down over four days, closing at 106, 102, 99 and 96. Nothing is drawn until the close at 96, which breaks 97 and draws a reversal line from 109 down to 96. A backtest that exits a long at the reversal line's top exits at 109. AlphaPrime confirms the reversal at the 96 close and exits at the next day's open plus slippage, around 96. That is 13 points of difference on an exit the chart makes look clean.
Where does a Line Break backtest see the future?
At the reversal line, at the breakout line, and in the stop check on a chart built from closes.
Exiting at the top of the reversal line
Rule: a reversal line exists only at the close that broke the three-line extreme. Why: the reversal line is drawn from the last line's close, but the information that it exists arrived at its far end. What it avoids: exits placed at the previous line's level, which is the best exit the chart can express and one that no trader could have taken.
Entering at the line level
Rule: the fill is the next real price after the confirming close, plus slippage. Why: the close that drew the line is past, and the next trade is usually further along the move. What it avoids: entries at the top edge of the previous line rather than at the price the market was offering.
Stops that only see closes
Rule: stops and targets are judged on the underlying bar's high and low, stop first. Why: a close-built chart does not know the intrabar range. What it avoids: a test in which the account is never stopped intrabar, when real accounts are.
| Line Break event | Drawn-line backtest | AlphaPrime |
|---|---|---|
| Reversal line | Exit at the previous line's level | Confirmed at the breaking close; fill at the next real price |
| Continuation line | Fill at the line's top or bottom | Confirmed at the close; fill at the next real price plus doubled slippage |
| Close exactly equal to the extreme | Varies by engine | Draws nothing; a line needs a close strictly beyond the level |
| Stop check | Closes only | Real highs and lows of the underlying bars, stop first |
| Bars that draw nothing | Invisible to the strategy | Folded into the real-price bar that settles the next line, so stops and targets still see them |

How does AlphaPrime backtest a Line Break strategy?
The strategy reads lines, their direction and their count. Fills, stops and targets are settled on the underlying bars, including the bars that drew no line. Rule by rule:
- Lines are confirmed at the close of the underlying bar. Why: the chart is defined by closes, and the forming bar's close is unknown. Avoids: lines drawn from a mid-bar price that did not hold.
- Market orders fill at the open of the following underlying bar, slippage included. Why: the first price that exists after the signal. Avoids: fills at line tops and bottoms.
- Bars that draw no line still count. Why: price moved during them even if the chart did not; their real highs and lows are folded into the real-price bar that settles the next line. Avoids: stops and targets that sleep while the chart is quiet.
- Stops and targets are judged on the underlying bars' real highs and lows, with the stop counted first. Why: the real bars hold prices the close-built chart never saw. Avoids: stop-outs that only happen on closes.
- Slippage is doubled, and the multiplier can only be raised. Why: a Line Break line is confirmed only after the close has broken the extreme of three lines, which is when the market is already running. The larger cost, the distance from the drawn line to the real fill, is charged by the real-price fill on top of that. Avoids: pricing a confirmed break at a quiet-market spread.
The practical consequence is that a Line Break strategy's exits land much lower (for longs) than the chart suggests, and its average winner shrinks accordingly. Many Line Break rules survive this with a smaller but real edge; the ones that do not were living on the drawn exit. The method for weighing the line-to-fill distance and the doubled slippage against the average trade is on the page about commission, slippage and the average trade.
How do you choose the line count for backtesting?
Three lines is the standard and a good default; two lines reverses often and behaves like a noisy close-to-close chart, while four or more lines suits only long holding periods. The line count sets the depth of the pullback you accept before the chart turns, so choose it from the holding period, not from the backtest result.
- Two-line break for short holds on hourly bars, with the understanding that it will whipsaw in ranges and that each whipsaw costs two real fills.
- Three-line break for swing holds on daily bars, the setting most of the published rules assume.
- Four- or five-line break for position trades measured in weeks, where the deep reversal requirement is the feature.
The underlying resolution matters as much as the count. Line Break is defined by closes, so a finer underlying bar does not add precision to the chart, but it does add precision to the fills and stops, which is where the money is settled. Daily lines built from hourly or 15-minute underlying bars give you honest intrabar stops without changing the chart. The related charts that reverse on a price amount or a box count have their own pages: Kagi chart backtests and point and figure chart backtests.
Which markets and strategies suit Line Break charts?
Line Break suits trend-following rules with long holds on markets that trend for weeks: index futures, bonds, major currency pairs and the larger cryptocurrencies on daily bars. It is a poor fit for intraday trading and for any rule that needs a tight exit, because the three-line reversal is the opposite of tight.
Two checks before trusting a Line Break result. First, measure the average distance between the reversal line's top and the close that confirmed it; that is the exit slippage the chart was hiding, and it should be in your cost model. Second, run the rule with a real-price stop at a fixed distance and compare. If the stopped version is much better, the chart's exit was the weak link, not the entry. If the result holds, it has earned walk-forward analysis like any other candidate.
What this means if you use AlphaPrime: choose Line Break as the chart type in strategy generation, set the line count and the underlying resolution, and run the search. Every candidate is tested with lines confirmed at the underlying close, fills at the next real price with doubled slippage, and stops judged on real bars even on days that drew no line. Classic and Reserve apply the same rules. The exits in your report are the ones you could have taken.
Frequently asked questions
What is a three line break chart?
A chart that draws a new line when the close moves beyond the previous line in the trend direction, and a reversal line only when the close breaks the extreme of the last three lines combined. Closes between those levels draw nothing. The three is the number of prior lines a reversal must break; two and four are also used.
Why are Line Break exits so late?
Because the reversal rule requires the close to break the extreme of three lines, which in a steady trend sits well below the current price. The chart draws the reversal line from the previous line's level, so it looks early; the close that triggered it is at the far end of that line. AlphaPrime exits at the next real price after that close.
Can I use intrabar highs and lows to build Line Break lines?
You can build a variant that way, but the standard chart uses closes only, and a high-low variant brings the same-bar ordering problem that point and figure has. AlphaPrime builds the standard close-based chart and uses the real highs and lows for stops and targets instead.
Does Line Break work for forex and crypto?
Yes, on daily and 4-hour underlying bars in markets that trend. The rules are identical; the slippage figure and the typical pullback depth differ by market, and the backtest shows both.

