Three-line break
Three-line break is defined by the local calculation documented below.
This entry has an incomplete verified explanation or executable case and is excluded from search indexing. Known definitions and missing inputs are distinguished below.
Purpose and construction
Three-line break is defined by the local calculation documented below.
Three-line break is applied to the chart series using the local definition below. Each period counts one bar on the active chart. The same period therefore covers a different amount of time on daily and intraday charts.
How to read it
Follow the intermediate calculations and final output definitions. Where external inputs are required, missing data is not a zero reading.
Confirm the inputs and settings before comparing the indicator with price. On an open bar, close, extremes and volume can still change, so the reading can update before the bar closes.
Parameters
This definition exposes no configurable parameters.
Parameter names match the variables in the calculation. After changing a lookback or smoothing period, recalculate on the same data to compare response speed. Defaults from another platform may not match this definition.
Actual application chart
This screenshot shows Three-line break running on the application's TSLA daily chart. Price and indicator share the same market history, preserving the curves, bars and markers drawn by the application.

Follow the intermediate calculations and final output definitions. Where external inputs are required, missing data is not a zero reading.
- Check the displayed indicator name and parameters against the version currently loaded.
- Align price and indicator by time, then compare direction, turning points and marker locations.
- After changing settings or timeframe, wait for calculation to finish before saving the same interval for comparison.
The screenshot records a historical chart display, not executed orders, returns or a win rate.
Local calculation
The local definition is shown below. Display labels can be translated; the case calculation uses original source identifiers. A shared indicator name does not guarantee identical calculations across platforms.
B1:=REF(C,1);
B2:= REF(C, 2);
SS:= IF(C > REF(C, 1) AND REF(C, 1) >= REF(C, 2), 1, IF(C < REF(C, 1) AND REF(C, 1) <= REF(C, 2), -1, IF(C > REF(C, 2) AND REF(C, 2) > REF(C, 1), 2, IF(C < REF(C, 2) AND REF(C, 2) < REF(C, 1), -2, 0))));
SM:= IF(REF(SS, 1) <> 0, REF(SS, 1), IF(REF(SS, 2) <> 0, REF(SS, 2), IF(REF(SS, 3) <> 0, REF(SS, 3), IF(REF(SS, 5) <> 0, REF(SS, 5), IF(REF(SS, 6) <> 0, REF(SS, 6), IF(REF(SS, 7) <> 0, REF(SS, 7), 0))))));
MC:= IF(REF(SS, 1) <> 0, B2, IF(SM > 0, MIN(B1, B2), MAX(B1, B2)));
TOW1:= IF(C > REF(C, 1), C, REF(C, 1));
TOW2:= IF((SS == -1 OR SS == -2) AND SM > 0, B2, TOW1);
TOWER:= IF(TOW1 > TOW2, TOW1, TOW2);
STICKLINE(SS == 1 OR SM >= 1 AND SS == 0, B1, C, 10, 1), COLORRED;
STICKLINE(SS == -1 OR SM <= -1 AND SS == 0, B1, C, 10, 0), COLORCYAN;
STICKLINE(SS == 2, B2, C, 10, 1), COLORRED;
STICKLINE(SS == -2, B2, C, 10, 0), COLORCYAN;
STICKLINE((SS == -1 OR SS == -2) AND SM > 0, B2, B1, 10, 1), COLORRED;
STICKLINE((SS == 1 OR SS == 2) AND SM < 0, B2, B1, 10, 0), COLORCYAN;Limitations
- Follow the intermediate calculations and final output definitions. Where external inputs are required, missing data is not a zero reading.
- Timeframe, adjustments, warm-up length and data units affect results. Align these before comparing charts.
Questions
Why can Three-line break differ across platforms?
Compare inputs, default periods, smoothing, offsets and data units before comparing the final value. This guide uses the local source definition rather than assuming that an external example has the same settings.
Does the example show a real trade?
No. Figures show the indicator running on historical market data in the application. They contain no executed orders and make no return or win-rate claim.
References
The calculation comes from the project’s indicator registry. Primary references below provide related conceptual reading. Figures are captured from the running application.