Half Trend

Half Trend
Indicator

TrendOn the price chartFree on ChartLabs

Half Trend is a trailing line that follows recent highs and lows and flips when an average of those extremes breaks the line it is tracking.

Community form by everget, 2021. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIHalf Trendchartlabs.co/charts
Atlas reads it

Half Trend is tracking a down leg.

HT 65,778.4

Atlas reads it

Half Trend is tracking a down leg.

HT 65,778.4

Illustration on simulated data.

Half TrendWhat is the Half Trend indicator?

Half Trend draws one line on the price chart, two pixels wide. It is green (#26a69a) in an up leg and red (#ef5350) in a down leg. The only input is Amplitude, default 2. The line uses the high, the low and the close. There is no ATR multiplier and there are no arrow marks on this page.

Amplitude is the window. Each bar ChartLabs takes the highest high and the lowest low of that window, and a simple average of the highs and of the lows. The windows are partial at the start, so the line exists on the first bar. It begins in an up leg.

While it looks for a down flip, it tracks the higher of the recent lowest lows. It flips down when the average of the highs falls under that track and the close is under the previous low. The up flip mirrors it: the average of the lows must rise above the tracked highs, and the close must be above the previous high. This is not SuperTrend. SuperTrend hangs an ATR band from price. Half Trend flips on these averages of highs and lows.

Amplitude 2 is short

A window of 2 bars flips on small swings. Raise it if you want the line to ignore more of them.

No source input

An older build had a source setting that did not change the numbers. ChartLabs does not offer it.

Half Trend signalsFive patterns to know.

1Bullish

Line under price

Half Trend is in an up leg. The line follows the recent lows it is allowed to track.

2Bearish

Line above price

Half Trend is in a down leg and follows the recent highs.

3Inconclusive

Colour change

The average of the extremes broke the tracked line and the close confirmed it. The line switches side.

4Bullish

Line stepping with the trend

In an up leg the line holds or rises with the lows it tracks. It does not give the distance back bar by bar.

5Inconclusive

Flip after flip

With amplitude 2, a range crosses the line often. Each flip undoes the last.

Half Trend formulaHow it is calculated.

flip down whenSMA(high,A)<maxLowandclose<lowprev
STEP 1

Window the extremes

Over the last Amplitude bars, take the highest high, the lowest low, the average of the highs and the average of the lows. Amplitude defaults to 2.

STEP 2

Track one side

In the search for a down flip, keep the higher of the lowest lows. In the search for an up flip, keep the lower of the highest highs.

STEP 3

Flip on a break

Flip down when the high average is under that tracked low and the close is under the previous low. Flip up on the mirror of that test. The line then follows the new side.

Half Trend settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Amplitude21 to 10,000Bars in the highest high, lowest low and the two averages. The Signal lens on this page sets this.
LineUp #26a69a, down #ef5350, 2 pxFixedGreen in an up leg, red in a down leg.
ArrowsNoneFixedThe chart draws the line only. This page does not add buy or sell marks.
Setting
Amplitude
Default
2
Range
1 to 10,000
What it changes
Bars in the highest high, lowest low and the two averages. The Signal lens on this page sets this.
Setting
Line
Default
Up #26a69a, down #ef5350, 2 px
Range
Fixed
What it changes
Green in an up leg, red in a down leg.
Setting
Arrows
Default
None
Range
Fixed
What it changes
The chart draws the line only. This page does not add buy or sell marks.
26 flips in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Half Trend strategiesUse it in 3 setups.

Flip as the stop change

Ifthe line flips under pricestop atthe lineeach bar

The flip is the average of the highs or lows breaking the tracked extreme, with the close confirming. Traders often still want a trend filter.

Hold while the colour holds

Whilethe line stays greenholdexit whenit flips

The line is a trailing stop for the leg it is already in. It is not a target.

Skip a run of flips

Ifflips clusterthenstand aside

Amplitude 2 in a range flips a lot. Waiting for fewer flips, or a higher amplitude, cuts those out.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Half Trend mistakesCommon mistakes.

Trading every flip at amplitude 2

Two bars is a very short window. Neighbouring bars can flip it without a trend.

Calling it SuperTrend

SuperTrend uses ATR. Half Trend uses the highest high, the lowest low and averages of the high and the low. The pictures are not interchangeable.

Expecting the line to call the turn early

The flip needs the average to break the tracked extreme and the close to break the previous bar. It follows.

Half Trend combinationsPair it with these.

Half Trend FAQQuestions traders ask.

What is the default Half Trend setting?

Amplitude 2. That is the only input. High, low and close are always used.

Is Half Trend the same as SuperTrend?

No. SuperTrend trails an ATR band. Half Trend flips when an average of the highs or the lows breaks a tracked extreme and the close confirms it.

What does the green line mean?

The indicator is in an up leg. The line follows the lows it is allowed to track, and it stays green until the down flip test passes.

Why does amplitude 2 flip so often?

The window is two bars. A short swing is enough to break it. A larger amplitude asks for a wider extreme first.

Does the line exist on the first bar?

Yes. The windows are partial until Amplitude bars exist, the trend starts up, and the first bar seeds the tracked high and low.

Is Half Trend leading or lagging?

Lagging. The flip waits for the averages and for the close to break the previous bar.

Does Half Trend repaint?

No. A closed bar keeps its line and its colour. The live bar moves until it closes.

What timeframe can I use?

Any. On a short chart, amplitude 2 follows almost every swing. Raise the amplitude if that is too busy.

Where does Half Trend come from?

A 2021 community script by everget. ChartLabs follows a written note of that script. The script file itself was not copied.

Related indicatorsMore trend tools.

All trend indicators

Try Half Trend on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Half Trend (2)