Skip to content
Script type
Indicator
Source code
Open-source
Purpose
Trade signals

Uhl MA Crossover System

Also known as UHLMA

Read the direction of a chop-resistant moving average crossover from its cloud color.

Difficulty Beginner

No.VOW-000110

All you see on the chart are two lines, one blue and one red, plus the cloud between them, and the cloud color tells you the current direction. There are only three settings: length, mult, and src. Knowing why the lines alternate between flat stretches and sudden steps will make you more confident reading them, but the whole mechanism comes down to one idea: the lines move only when price breaks out of a set range. If you already use moving average crossovers, you can start using it while reading this article.

Repainting
No repainting
  1. Live barChanges
  2. On closeFixed
  3. HistoryFixed
Best timeframes
  • Lower TFs≤15m
  • Mid TFs30m–4H
  • Higher TFs1D+
Tested on BTCUSDT (1m, 5m, 30m, 1H, 4H, 1D, 1W)
Alerts
No
Buy/sell signals
No
Market conditions
Trending
Display
Overlay
Chart elements
Lines
Base indicator
SMAStandard Deviation
Trading style
Swing TradingDay TradingPosition Trading
Trend

“Uhl MA Crossover System” Is a Staircase Moving Average That Waits Out the Chop

Diagram gallery 9

Article Summary
What does this indicator do?
Bottom line

Uhl MA Crossover System is a moving average crossover whose two lines stay flat while price moves within its normal range of fluctuation. It whipsaws less in choppy markets and shows direction at a glance through the cloud color, which makes it a good fit for traders who want to set their trend bias on the 1-hour chart and above.

Tell me more
Key points
  • A free, open-source TradingView indicator that displays a moving average crossover as two lines and a cloud.
  • The blue CTS is the fast line and the red CMA is the slow line; the cloud is blue when CTS is on top and red when CMA is.
  • Both lines are anchored to recent price variance and stay flat while the gap remains within that range.
  • As a result, the lines rarely cross in a choppy market, producing fewer whipsaws than a regular MA crossover.
  • On strong moves, CTS jumps close to the close in a single bar, so the cloud can flip almost in step with price.
  • Near the end of a rally, CTS starts stepping down before the cloud turns red, giving an early heads-up to plan your exit.
  • The three settings are length, mult, and src: length controls reaction speed, and mult controls how strict the trigger is.
  • Confirmed bars never repaint. There are no built-in alert conditions, so set a line crossing in the alert dialog.

Uhl MA Crossover System: An MA Crossover That Waits Out the Chop

Golden crosses and death crosses are probably the most familiar way to spot a trend change. The problem is what happens in a sideways market: the two moving averages keep tangling, and every tangle flips you from long to short and back again. If you have traded MA crossovers for any length of time, you know exactly how that feels.

Uhl MA Crossover System builds a two-line MA crossover around the Corrected Moving Average (CMA), a moving average designed by Andreas Uhl of the University of Salzburg in Austria. One line is fast, the other is slow. What sets it apart is that both lines stay flat while price movement is small, so crossovers rarely happen in a choppy market.

When I ran it across every timeframe from the 1-minute to the weekly chart, it looked nothing like a regular moving average. Instead of a smooth curve, each line moves like a staircase, alternating between flat stretches and sudden steps. That shape is the whole idea behind Uhl MA Crossover System.

Two Lines and a Cloud. That Is All You See

The display is about as clean as it gets. A blue line and a red line are drawn over the candles, and the space between them is shaded blue or red. In this article, I call that shaded area the “cloud.”

ElementColorRole
CTS (Corrected Trend Step)BlueFast line that tracks close to price
CMA (Corrected Moving Average)RedSlow line that follows at a distance
CloudBlue or redBlue when CTS is on top, red when CMA is on top

You read it like any MA crossover: the fast line crossing above the slow line is bullish, and crossing below is bearish. At Figure 1, CTS crosses above CMA and the cloud turns blue. At Figure 3, it crosses back below and the cloud returns to red. The part worth noticing is Figure 2, where CTS goes flat for a while even in the middle of an uptrend.

Blue Cloud, Red Cloud: Spotting Trend Changes With Two Lines

In Uhl MA Crossover System, the cloud changes color when the fast blue line and the slow red line swap places.

Blue Cloud, Red Cloud: Spotting Trend Changes With Two LinesFigure showing the cloud turning blue when the blue CTS line crosses above the red CMA line, and returning to red when it crosses below.CTS crosses above CMAand the cloud turns blueHolds flat whileprice movement is smallCrosses below andthe cloud turns red againCMA (slow line)

Vowars DE ver.3.12.40

Default settings (length 100, mult 1). The blue line is CTS and the red line is CMA. The cloud color depends only on which line is on top.

There are no buy or sell arrows or labels. Everything comes down to the cloud color and the point where the two lines swap places. With only two colors to read, you know which way things are leaning the moment you open the chart.

Uhl MA Crossover System on a 4-hour chart. The cloud stays blue during the uptrend and flips to red once price turns lower.
Uhl MA Crossover System on a 4-hour chart. The cloud stays blue during the uptrend and flips to red once price turns lower.

Why the Lines Move Like a Staircase

Both lines in Uhl MA Crossover System are anchored to how much price has recently been fluctuating, and that fluctuation is measured with variance (the square of the standard deviation). Once you understand this, it becomes clear why the lines stall and why they suddenly jump.

CTS Only Moves When the Close Breaks Away

CTS looks at the distance between its previous value and the current close. As long as that distance stays within the variance of the last length closes, CTS simply holds its previous value. That is the stretch at Figure 1: the candles bounce around, but the line does not move at all.

Only when a bar closes outside that range does CTS update. The bar at Figure 2 is that moment. The size of the move is not fixed either; the farther the close breaks away, the closer CTS gets pulled toward it. On a big bullish candle like the one at Figure 3, CTS lands right next to the close in a single bar.

When CTS Holds and When It Moves

CTS only moves when the close breaks away from the previous CTS by more than the recent variance range.

When CTS Holds and When It MovesFigure overlaying a variance-based range around CTS, showing that CTS updates only on bars that close outside that range.While closes stay inside the band,CTS does not move at allCTS updates on the barthat closes outside the bandOn a big breakaway bar,CTS jumps right next to the close

Vowars DE ver.3.12.40

The gray band is drawn for illustration only: it spans the standard deviation of the last length closes above and below the previous bar's CTS. It does not appear on the actual chart.

The gray band in the figure is something I added to show the mechanism; the indicator itself does not plot it. Still, it explains why CTS on your chart keeps alternating between steps and flat stretches.

CMA Chases the Simple Moving Average From Behind

The red CMA works on the same principle. The difference is that instead of chasing the close, it chases the length-period simple moving average (SMA). While the gap between the SMA and CMA stays within the variance range, CMA stays flat.

At Figure 1, the SMA pulls away to the upside, yet CMA stays at the same level for quite a while. Only at the bar marked Figure 2, where the gap exceeds that range, does it finally start curving higher.

When CMA Starts Moving

CMA chases the 100-period simple moving average, but it stays flat until the gap between them exceeds the variance range.

When CMA Starts MovingFigure showing CMA staying flat as the simple moving average rises, then starting to follow it from the bar where the gap exceeds a set range.CMA stays flat whilethe SMA pulls away aboveCMA starts chasing oncethe gap exceeds the variance range100 SMA (illustration only)

Vowars DE ver.3.12.40

The gray dotted line is a 100-period simple moving average of the close, added for illustration. Uhl MA Crossover System does not plot it. Default settings (length 100, mult 1).

You will see the same thing on live charts: CMA runs flat for a long time and then starts moving in a curve at some point. On the daily chart, the red line curved steadily lower from mid-January into May. Because it waits before it moves, CMA behaves like a calm, slow line.

Where the Corrected Moving Average Comes From

CMA is a moving average Andreas Uhl introduced in a research paper, and it is not widely known. Uhl MA Crossover System uses CMA as the slow line and pairs it with CTS, a new fast line that applies the same logic to the close. CTS was created specifically for this indicator, so you will not find it under that name anywhere else.

Fewer Whipsaws in Choppy Markets

Since both lines are built to wait, they both tend to go flat in a range, and there are simply fewer chances for them to cross. That is why the biggest headache with regular MA crossovers, getting chopped up inside a range, happens far less often here.

At Figure 1, the close keeps flipping above and below the red CMA. Looking only at the close versus CMA, it switched sides six times. But as Figure 2 shows, CTS stays flat just under CMA, and the cloud at Figure 3 stays red the whole way.

The Cloud Holds Its Color No Matter How Often Price Crosses CMA

Even when price chops above and below the red line, CTS stays flat without crossing it, and the cloud stays red.

The Cloud Holds Its Color No Matter How Often Price Crosses CMAFigure showing the close crossing CMA repeatedly in a range while CTS stays flat below CMA and the cloud color never changes.The close keeps pokingabove the red lineCTS stays flat andnever reaches CMAThe cloud stays redand never flips

Vowars DE ver.3.12.40

Default settings (length 100, mult 1). The close alone crosses the red line six times, but CTS and CMA never swap places.
A Cloud That Does Not Change Still Tells You Something

With Uhl MA Crossover System, the absence of a color change is information in itself. If the cloud keeps its color while price moves around, the trend has not changed yet. That makes it useful when you are deciding whether to stay in a position instead of reacting to every short-term swing.

On the other hand, it reacts surprisingly fast when price breaks out with momentum. Because CTS jumps almost all the way to the close on a bar that moves far enough, a big bullish candle that clears CMA, as at Figure 1, takes CTS above CMA on the same bar, as at Figure 2. The typical MA crossover lag, where the cross only shows up after the move is well underway, is much less of an issue on strong moves.

Price and CTS Clear CMA on the Same Bar

In Uhl MA Crossover System, CTS can cross CMA on the very bar where price breaks through it, which keeps the usual MA crossover lag small.

Price and CTS Clear CMA on the Same BarFigure showing a big bullish candle breaking above CMA, with CTS moving above CMA on the same bar and the cloud turning blue from that bar.Big bullish candlebreaks above CMACTS moves above CMAon the same barCMA

Vowars DE ver.3.12.40

Default settings (length 100, mult 1). Because the bar closed far away from the previous CTS, CTS moves right next to the close within that same bar.

Trading the Cloud Color

Uhl MA Crossover System was designed as an MA crossover trading system from the start. Here is how I break down using it in practice, in three steps.

1 Set Your Bias From the Cloud Color

A blue cloud means a long bias, a red cloud means a short bias. If you time entries on a lower timeframe, an easy approach is to keep Uhl MA Crossover System on a higher timeframe and only take trades in the direction of its color.

2 Wait for the Flip Bar to Close

Your entry candidate is the bar where the cloud changes color. Keep in mind that on the live bar, CTS and CMA move every time the close updates. A flip can show up intrabar and disappear before the bar closes, so wait for the bar close before you act. Once a bar is confirmed, its lines and cloud color do not change.

3 Get Ready to Exit When CTS Steps Down

The exit signal is a flip in the opposite direction, but there is an earlier change you can catch. Near the end of an uptrend, CTS starts stepping down while the cloud is still blue. At Figure 1, CTS steps lower, and at Figure 2, a few bars later, the cloud turns red.

CTS Steps Down Before the Cloud Turns Red

Near the end of an uptrend, CTS starts stepping down before the cloud changes color. You can use it as an early heads-up to plan your exit.

CTS Steps Down Before the Cloud Turns RedFigure showing CTS stepping down while the cloud is still blue, followed a few bars later by the cloud turning red.CTS steps down whilethe cloud is still blueA few bars later,the cloud turns red

Vowars DE ver.3.12.40

Default settings (length 100, mult 1). When CTS starts dropping, the cloud is still blue, but the gap between CTS and CMA narrows sharply.

Take partial profits when CTS starts stepping down, then close the rest when the cloud turns red. Splitting the exit into two stages like this makes it easier to avoid giving back your open profit all at once on every reversal. That said, CTS sometimes dips and then climbs again while the cloud stays blue, so treat the step-down as a heads-up rather than an exit signal.

Uhl MA Crossover System on the daily chart. The red CMA curves lower, and a large bullish bar flips the cloud to blue.
Uhl MA Crossover System on the daily chart. The red CMA curves lower, and a large bullish bar flips the cloud to blue.

How It Looks Across Timeframes

I kept the default settings and switched through the 1-minute, 5-minute, 30-minute, 1-hour, 4-hour, daily, and weekly charts. The mechanics are identical on every timeframe, but the impression each one gives is different.

On the lower timeframes, there were stretches where the cloud flipped every few hours. A length of 100 bars is just 100 minutes on the 1-minute chart and a little over 8 hours on the 5-minute chart. The lines react to small swings, and for scalping there will be times when waiting for the color change means you are already late.

On the 1-hour to 4-hour charts, by contrast, the cloud held its color for days to weeks, which is a good fit for setting your bias as a day trader or swing trader. On the weekly chart, most of the visible range sat inside a blue cloud, so it turns into a way of checking whether the long-term uptrend is still intact.

Uhl MA Crossover System on the weekly chart. In a long-term uptrend, the blue cloud lasts for years while CMA trails higher behind price.
Uhl MA Crossover System on the weekly chart. In a long-term uptrend, the blue cloud lasts for years while CMA trails higher behind price.

Keep in mind that this is only a small slice of each timeframe. How often the color flips depends on market conditions on any timeframe, so it is worth running Bar Replay on the timeframe you actually trade and stepping through past bars one at a time.

Tuning How Long It Waits With length and mult

There are three settings, listed below exactly as they appear in the settings dialog.

Parameters
SettingDefaultSuggestedEffect
length10050-200Number of bars used for the SMA and the variance. Higher values make both lines move more slowly and the cloud less likely to flip
mult11-3Multiplier applied to the variance threshold. Higher values make it harder for the lines to start moving, so they stay flat longer
srccloseclosePrice used in the calculation. Defaults to the close

length Sets How Fast It Reacts

length is both the period of the SMA that CMA chases and the lookback used to measure variance. A shorter value gets you into new moves earlier, but the color also flips more easily on pullbacks and bounces.

Put a length of 30 and a length of 150 side by side on the same price action and the difference is obvious. With 30, the cloud turns blue right at the start of the rally at Figure 1, but it slips back to red for a few bars on the pullback at Figure 2. With 150, it stays red until price breaks sharply higher at Figure 3.

How length Changes Reaction Speed

On the same price action, a shorter length flips the cloud sooner, while a longer one waits for a bigger move.

How length Changes Reaction SpeedFigure comparing Uhl MA Crossover System at length 30 and length 150 on the same candles to show when the cloud flips.length 30length 150Flips blue right atthe start of the rallySlips back to redfor a few bars on the pullbackTurns blue only aftera strong breakout

Vowars DE ver.3.12.40

Top pane: length 30. Bottom pane: length 150 (both mult 1). Shorter values catch moves earlier but flip more easily on pullbacks.

mult Sets How Hard It Filters Fakeouts

mult sets how many times the variance range is multiplied. Raising it pushes out the “move this far before I react” threshold, so both CTS and CMA stay flat for longer.

Compare them in a stretch of sharp spikes and drops. With mult at 1, the cloud flips blue once at Figure 1 and goes straight back to red at Figure 2. At 3, it ignores the brief spike and turns blue only once, on the real rally at Figure 3.

Raising mult Cuts Down on Whipsaws

A higher mult makes it harder for CTS and CMA to start moving, so short-lived spikes are less likely to flip the cloud.

Raising mult Cuts Down on WhipsawsFigure comparing mult 1 and mult 3 on the same candles during a run of sharp spikes and drops, showing how many times the cloud flips.mult 1mult 3Flips blue onceon the spikeBack to red right awayon the dropmult 3 turns blue only once,on the real rally

Vowars DE ver.3.12.40

Top pane: mult 1. Bottom pane: mult 3 (both length 100). The top pane flips twice on the spike and drop before turning blue again, while the bottom pane turns blue only once on the real rally.

Raising either length or mult makes the cloud flip less often. The difference is that length slows down what the lines are chasing, while mult leaves that target alone and only pushes the trigger point further away. If you want to cut down on fakeouts without giving up early entries, start by adjusting mult.

Settings by Goal

GoallengthmultReasoning
Catch moves earlierAround 501Keep the trigger threshold, shorten only the period being chased
Get used to it with defaults1001Works well for setting your bias on the 1-hour to 4-hour charts
Filter out even more fakeouts1002-3Keep the period, make only the trigger condition stricter
Track only the big-picture trend2001-2Check whether a major trend is still intact on the daily or weekly chart

These values are rough guides based on comparing the figures and live charts. Every market has its own rhythm, so whether you use it on gold or major forex pairs, check how often the color flips with Bar Replay before settling on your numbers.

Confirming Momentum With Aroon

Uhl MA Crossover System tells you the direction, but not whether a flip has momentum behind it. That is where the built-in Aroon indicator on TradingView comes in. Aroon measures how many bars have passed since the highest high or lowest low within the lookback period on a 0 to 100 scale, and a reading of 100 means the current bar just printed a new high (or low).

After the cloud turns blue at Figure 1, Aroon Up stays elevated at Figure 2, showing that new highs keep coming. On the flip side, at Figure 3 Aroon Down hits 100 and the cloud turns back to red at almost the same time.

Checking the Momentum Behind a Flip With Aroon

Checking whether one Aroon line is pinned near 100 around a color change tells you whether the flip is backed by a run of new highs or lows.

Checking the Momentum Behind a Flip With AroonFigure showing Aroon Up reaching 100 on the bar where the Uhl MA Crossover System cloud turns blue, and Aroon Down reaching 100 just before it turns red.Aroon (14)The cloud flips blueAroon Up stays elevated,showing the rally continuesAroon Down hits 100and the cloud turns red

Vowars DE ver.3.12.40

Top pane: Uhl MA Crossover System (default settings). Bottom pane: TradingView's built-in Aroon (length 14). Orange is Aroon Up and blue is Aroon Down.

Because Aroon reacts quickly, Aroon Down can spike briefly even in the middle of an uptrend. In the figure, Aroon Down climbs close to 100 midway through the blue cloud, yet the Uhl MA Crossover System cloud stays blue. Use Aroon for momentum and the cloud color for trend direction, and each one covers the other’s weak spot.

A few other indicators look like a good match too. Chaikin Money Flow (CMF), which shows whether volume is skewed toward buyers or sellers, helps confirm that money is actually flowing in the direction of the flip. ATR is handy for sizing your stop once the cloud color has set your direction. And if you want a number for whether the market is choppy, adding ADX in a separate pane makes it easier to tell whether the cloud is holding its color because the trend is intact or because nothing is moving.

What to Know Before You Use It

Where Waiting Pays Off

  • Both lines go flat in a range, so whipsaw crossovers are rare
  • On strong moves, CTS catches up in a single bar, keeping crossover lag small
  • With a two-color cloud, you can read direction at a glance on any timeframe
  • Lines and colors on confirmed bars never change after the fact

Where Waiting Needs Care

  • In slow, grinding trends, the lines can take a while to start moving
  • In a run of sharp spikes and drops, the default settings can flip back and forth
  • It does not show momentum strength, so pair it with another indicator
  • Lines and colors move on the live bar, so you need to wait for the bar close

Repainting and the Realtime Bar

Uhl MA Crossover System calculates its lines using only closes up to the current bar and does not use any future data. CTS, CMA, and the cloud color on confirmed bars never change after the fact. Only the realtime bar moves, with the lines and cloud color updating every time the close ticks.

One more thing: at the far left of the chart, CMA does not appear until length bars are available. On newly listed assets, or on higher timeframes with only a few bars of history loaded, the line starts partway through the chart.

Alerts and Backtesting

The indicator does not include any built-in alert conditions. You can still get notified of a crossover in TradingView’s alert dialog by selecting this indicator’s CTS as the condition and setting CMA as the target for “Crossing.” Setting the trigger to “Once Per Bar Close” keeps you from getting alerts on brief intrabar crosses on the live bar.

Since Uhl MA Crossover System is not a strategy, you cannot view its performance in the Strategy Tester as is. The same author has published a separate strategy version called “Uhl MA System – Strategy Analysis,” so that is one option if you want to check the numbers. Check its published page first to confirm whether the trading rules and settings match.

Do Not Trade on Cloud Color Alone

The cloud color only shows the direction of the trend. Flips that look clean on a historical chart can be much harder to call in real time, when the live bar is moving up and down. Set your stop first, and make your decision together with the higher-timeframe trend and other indicators.

What the Flat Lines Are Telling You

Uhl MA Crossover System

Uhl MA Crossover System shows nothing more than two lines and a cloud, but the real value is in the stretches where the lines stop moving. It waits while price stays within its normal range and only moves when that range is broken. That is why the cloud stays calm even in the choppy markets where regular MA crossovers struggle.

If you are just getting started, load it with the default settings on a 1-hour or 4-hour chart and watch the cloud color and the points where CTS steps up or down. If the back-and-forth bothers you, raise mult. If you want to get in earlier, lower length. Those two adjustments alone should be enough to find a way of waiting that fits your trading.

Sources: This article is based on hands-on testing and in-depth analysis of the indicator Uhl MA Crossover System by alexgrover on the charting platform TradingView.

Disclaimer: This article summarizes our own testing and analysis of how an indicator published on TradingView works and behaves. The symbols, timeframes, and settings used here were chosen to check how the indicator displays—they are not a recommendation to trade those instruments or to use the suggested settings. Indicators can change when their authors update them, so this article reflects the version we tested. All investment decisions are your own.

Never miss a new indicator
Get Vowars in Google search, a browser alert on publish, or updates on X.
YUZURU
AuthorYUZURUFounder & Reviewer, Vowars
View profileClose

An editor for content sites at a web agency, I started trading crypto in 2018. Working my way from spot to futures got me hooked on chart analysis, and I now build my own custom indicators on TradingView. On Vowars, I test TradingView indicators one by one on my own charts and review everything from the math behind them to how to use them and where they fall short, with custom visuals throughout.…

Created by

Vowars Picks

Stochastic Heat Map

“Stochastic Heat Map” Tested: Bottom-to-Top Color Shifts That Show How Real a Move Is

"Stochastic Heat Map" is an oscillator that stacks 28 Stochastics with lengths from 10 to 280 as colors, showing where price sits in its range on every lookback at once. The way color spreads from the bottom rows to the top tells you how strong a move is, but red stays pinned in strong trends, so it works best with direction handled separately by something like an EMA.

DifficultyIntermediate 8 figures

CME Institutional Order Flow & AMT Lens

Auction Market Theory on One Chart: An Indicator That Flags Volume Absorption by Color

“CME Institutional Order Flow & AMT Lens” is a TradingView indicator that combines a volume profile, candle coloring, shelves, and a dashboard in one. It gives no buy or sell signals and instead automatically marks key prices such as the POC and Value Area.

DifficultyAdvanced 7 figures

Fibonacci Trend Continuation Signals [AlgoAlpha]

Measure Pullback Depth Inside a Trend With “Fibonacci Trend Continuation Signals”

"Fibonacci Trend Continuation Signals" is a free TradingView indicator that automatically draws a Fibonacci range in the direction of the trend and prints a continuation signal the moment price starts moving again after a pullback or bounce. It gives you an objective read on pullback depth.

DifficultyIntermediate 5 figures

Smart Trader, Episode 06, Isotropic Trend Lines

Isotropic Trend Lines: Measuring Trend Strength with a Volatility-Adjusted Angle

Isotropic Trend Lines is a channel indicator that puts price on a log scale and divides it by volatility (σ) to produce a trend angle that does not depend on chart scaling. On one screen you get direction, strength, and position in the channel, plus breakout and retest status.

DifficultyIntermediate 10 figures

Strong Burst Fader

Strong Burst Fader: Measure Overextension with Diamond Stacks and Color for Mean-Reversion Fades

“Strong Burst Fader” measures how far the wick pokes outside a hidden moving average plus ATR band and shows that depth as diamond stack height and color, making it a mean-reversion indicator for fading overextended moves. The taller and redder the stack, the deeper the overshoot, and the best setups come when the burst stops at one stack and price closes back inside the band.

DifficultyBeginner 9 figures

Divergence for Many Indicators v4

Divergence for Many Indicators v4 : How to Read Divergence Across 10 Indicators in One Label

"Divergence for Many Indicators v4" is a TradingView indicator that detects divergence across 10 indicators, including RSI and MACD, and shows how many line up in a single label. Signals come early, but only the last one survives within the same swing. It works best once you've defined market direction.

DifficultyIntermediate 6 figures

Browse by goal

1 / 5