Prism Moving Average Trend (PriMAT): A Trend Indicator That Paints the Current Flow in a Single Color
Prism Moving Average Trend (PriMAT for short) plots a single midline on the chart with an ATR-based band above and below it, and repaints the candles themselves green or pink to match its trend read. Green means bullish, pink means bearish. Only the bars before the very first read show up gray.
MA-plus-band combos are nothing new. What sets PriMAT apart is that it boils a flip down to two conditions: the close has to be outside the band, and the midline has to be pointing the same way. One without the other won’t change the color, so small wiggles rarely flip the trend state. The trade-off is that it’s late to call reversals.
For this review I ran PriMAT on Bitcoin from the 1-minute chart all the way up to the weekly, comparing how the colors flip and where the yellow background (the reversal warning) shows up. Then I rebuilt the logic in diagrams to sort out where you can lean on it and where you should stay skeptical.
Candles, midline and bands flip color together
PriMAT repaints the candles and the band as one unit whenever its trend state changes.
Vowars DE ver.3.12.36
As Figure 1 shows, while the read is bearish the candles, midline and band are all pink. After the yellow background in Figure 2, the state flips bullish in Figure 3 and everything turns green at once. Being able to tell the current trend state just by glancing at the chart colors is PriMAT’s most obvious selling point.

What you see on the chart
There isn’t much on screen. One thing to watch, though: the candle colors are PriMAT’s overlay, so don’t confuse them with your regular candles at first.
| Element | Looks like | What it means |
|---|---|---|
| Midline (Prism Moving Average) | Thick line drawn in the state color | A moving average smoothed twice with its own custom weighting |
| Bands (Prism Upper Band / Prism Lower Band) | Two lines around the midline with a semi-transparent fill between them | Midline plus/minus ATR × multiplier. The threshold for whether the state can flip |
| Candle color | Green, pink or gray | The trend state as of that bar, not whether the candle closed up or down |
| Yellow background (Potential Trend Reversal Warning) | A one-bar-wide vertical stripe | The bar where the move against the trend is the largest over the recent window |
| Change | Not drawn on the chart; the value only shows in the status line | Bar-to-bar change of the midline. Green text when rising, pink when falling |
As the table shows, candles get the state color whether they close up or down. Red candles during a bullish read get painted green too, so a run of green bars doesn’t necessarily mean price kept climbing. The trick is to read price action from the candle shape (body and wicks) and the trend state from the color.
Two Conditions Flip the Color: The Band Break and the Midline Slope
PriMAT’s rule set is simple. On every bar close, it checks two things in order.
- Bullish (green) requires the close to be above the upper band and the midline to be higher than on the previous bar
- Bearish (pink) requires the close to be below the lower band and the midline to be lower than on the previous bar
On bars that meet neither condition, the previous state simply carries over. It never resets to neutral. The only gray stretch is at the far left of the chart, before the very first read.
A close outside the band isn’t enough to flip the color
A flip needs both a band break and a midline turn
Even with a close outside the band, the color holds while the midline still points the other way.
Vowars DE ver.3.12.36
Look at Figure 1. The close is above the upper band, yet the candles stay pink. The midline is still pointing down, so the second condition for a bullish read isn’t met. Only in Figure 2, on the bar where the midline turns up, does it finally flip green.
On live charts, too, this “outside the band but no color change” state can show up right after a sharp bounce. Because it waits for the average to turn instead of chasing the spike, it won’t catch the first leg of a bounce. On the flip side, a one-off spike is less likely to flip the trend state.
Losing the midline doesn’t flip the trend that easily
Losing the midline doesn't flip the trend
PriMAT carries the previous state forward. While price chops inside the band, it stays green.
Vowars DE ver.3.12.36
In Figure 1, price closes below the midline for 11 bars, but it stays green because it holds inside the lower band. With a regular moving average you’d be tempted to call that “lost the line, turn bearish.” With PriMAT, you’ll get more out of it by treating the midline as one reference for whether the state could change, not as a buy/sell line.
We’ll get to the yellow background in Figure 2 and the red candle painted green in Figure 3 in the sections below.
PriMAT checks the band break against the close (the default Source). On a live bar the condition can switch on and off as price moves, so the candle color and yellow background can change several times before the bar closes. Only treat it as a read once the bar is confirmed.
The Smooth Midline Weights Recent Bars Heavily and Fades Out Older Ones
The midline curves so smoothly because of how it weights the data. PriMAT takes the prices over the number of bars set in Lookback, applies weights built from trig functions (sin and cos), and averages them.
How the weights spread across a 31-bar Lookback
PriMAT's midline puts the most weight on recent bars and fades out older ones.
Vowars DE ver.3.12.36
With Lookback at its default of 31, the weight is about 1.05 on the latest bar in Figure 1, peaks at about 1.21 seven bars back in Figure 2, and then tapers off toward older bars. By 30 bars back in Figure 3, it’s nearly zero. Leaning on the last few bars is similar to a weighted moving average (WMA), but in PriMAT the heaviest weight sits a few bars back rather than on the latest bar.
On top of that, it blends a fixed share of the current price into this average (about 6% with Lookback at 31), then runs the same calculation again over the square root of Lookback (6 bars for 31). That double smoothing is why the line shows almost no jaggedness.
With two passes of smoothing, the midline inevitably trails price. In the diagrams, too, the midline only turned a few bars after the top or bottom was in. It’s best to think of PriMAT’s read as arriving “once the reversal is reasonably clear,” not at the first sign of a turn.
The Yellow Background (Potential Trend Reversal Warning) Marks Where Momentum Faded
The other standout feature is the yellow stripe that shows up from time to time. In the settings it’s labeled Potential Trend Reversal Warning, but what it actually does is a bit more specific.
In a bullish read it measures how far the close sits above the midline; in a bearish read, how far it sits below. When that value hits its lowest point within the last Lookback bars (31 by default), the bar gets a yellow background. In other words, it marks the bar where price “stalled” the most relative to the trend. It can light up even if price hasn’t crossed to the other side of the midline, as long as that’s the closest it has come to the midline in the window.
The yellow warning shows up on dips and right before reversals
When it prints, there's no telling yet what comes next.
Vowars DE ver.3.12.36
Figure 1 shows yellow printing on a pullback in an uptrend, after which the move kept going. In Figure 2, it lit up after a sideways stretch and flipped pink right after. Same yellow, opposite outcomes.
On the actual Bitcoin charts, the 1-minute and 5-minute timeframes printed lots of small yellow stripes. Sometimes they clustered right before a flip, and just as often the green simply carried on. Exit or fade on yellow alone, and you’ll get shaken out of trends a lot.
The practical way to read yellow is as a marker of where the trend lost steam, not as a reversal signal. If you’re in a position, use it as a cue to take partial profits or trail your stop (raise it on longs, lower it on shorts), and wait for the candle color to flip before calling a reversal. That division of labor works well.
Putting It to Work on a Live Chart
PriMAT doesn’t plot buy/sell arrows or labels. The key is deciding where its color-coded read fits into your own entry rules. Here’s a step-by-step way to use it for riding trends.
1 Set your bias with the higher-timeframe color
Start by checking PriMAT’s color on a higher timeframe than you normally trade, such as the 4H or daily. Use it as a directional filter (longs only on green, shorts only on pink), and the lag becomes much less of a problem.

2 Don’t chase the flip bar
The bar that flips the color has already closed outside the band. Entering right there tends to mean buying high outside the band (or selling low in a downtrend). Waiting for price to pull back into the band, a dip in an uptrend or a rally in a downtrend, gets you a tighter stop.
3 Use the opposite band as your stop reference
The state flips when a close breaks the opposite band. If you went long on a bullish read, placing your stop just beyond the lower band keeps your rules in sync with PriMAT’s read.
4 When yellow shows up, rethink how you protect profits
If a yellow background shows up while you’re in a trade, consider trimming size or moving your stop to breakeven. There’s no rush to exit completely until the candle color actually flips.

On the daily, the color held for long stretches: pink from the late-January flip through the end of the February selloff, and green from the flip after the July low, through the August rip and into mid-October. In both cases, though, the color only changed a while after the top or bottom was in. That isn’t specific to this period. It comes from the “wait for both conditions” logic covered earlier.
Fakeouts Cluster in Relief Rallies and Tight Ranges
Because the conditions to flip are on the strict side, PriMAT doesn’t throw many fakeouts, but it’s not zero. The one to watch most is a sizable relief rally inside a downtrend.
A green flip in a relief rally is often a bull trap
By the time PriMAT flips green on a bounce, much of the bounce is already behind you.
Vowars DE ver.3.12.36
In Figure 1, it only flips green after the bounce has fully played out, and as Figure 2 shows, the green lasts just 9 bars. By the time it flips back to pink in Figure 3, price is well below where the green flip printed. Since it waits until both conditions are met, on short bounces the color often changes just as the bounce is running out of gas.
The other trap is tight ranges on lower timeframes. On the Bitcoin 1-minute chart, green and pink kept trading places every 10 to 40 minutes, and yellow backgrounds showed up constantly. With a small range, ATR shrinks and the band narrows, so even small moves can meet the conditions.

On the 1-minute and 5-minute charts, the default settings can flip the state back and forth quite often. If you scalp with it, you’ll need ways to cut down fakeouts, such as raising Multiplier to widen the band, or filtering direction with PriMAT’s color on a higher timeframe.
Just Three Settings, but Lookback and Multiplier Change Its Character a Lot
PriMAT’s settings panel has only three inputs: Source, Lookback and Multiplier. With so few, each one has an outsized impact.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Source | close | close | Price used for the midline and the band-break check. Switching to something like hl2 makes the read less sensitive to wicks. It doesn’t affect the ATR calculation |
| Lookback | 31 | 31 (14–20 on lower timeframes) | Midline length. It also changes the ATR length and the yellow-warning window. Shorter means faster flips but a twitchier read |
| Multiplier | 0.85 | 0.85 (1.0–1.5 in noisy conditions) | ATR multiplier that sets the band width. Higher makes the state harder to flip; lower makes it more sensitive |
What changes with a shorter Lookback
Shorter Lookback: faster, but twitchier
Run 31 and 14 on the same price action and the flips play out very differently.
Vowars DE ver.3.12.36
The top pane is the default 31, the bottom pane is 14. As Figure 1 shows, at 14 it flipped pink once on the pullback and the read got shaky. On the other hand, the flip off the top in Figure 2 came 3 bars earlier at 14. At 31, in Figure 3, there’s just one flip in this stretch.
Lookback doesn’t just set the midline length; it also drives the ATR length and the yellow-warning window. The second smoothing pass is also set by the square root (4 bars at 14, 7 bars at 50), so higher values give a slower line.
What changes with a higher Multiplier
Higher Multiplier: wider bands, stickier trend state
Multiplier sets the band width. The wider the band, the less a short countermove can flip the color.
Vowars DE ver.3.12.36
At the default 0.85 in Figure 1, the mid-chart dip flipped it pink. At 1.5 in Figure 2, the same dip stays inside the band and it stays green. Think of Multiplier as the dial for how decisive a break has to be before the state flips.
Settings by use case
These are starting points based on this test and on how the logic works. The best values vary by asset and timeframe, so treat them as a baseline and fine-tune while watching how the colors flip on your own chart.
| Goal | Lookback | Multiplier | Rationale |
|---|---|---|---|
| Swing trading the bigger trend (4H to daily) | 31 (default) | 0.85 (default) | Prioritizes a stable read. Rarely whipsaws on pullbacks |
| Day trading and catching turns earlier (15m to 1H) | 14–20 | 0.85–1.0 | Faster flips mean more noise, so nudging the multiplier up a bit is fine |
| Cutting fakeouts on noisy assets or sessions | Around 31 | 1.2–1.5 | Widens the band so the state only flips on decisive breaks |
| Big-picture direction only (daily to weekly) | 40–60 | 0.85–1.0 | The midline gets even slower and the color barely changes |
In long, persistent trends like a gold bull run, the defaults should hold up fine, while on lower timeframes of assets with sharp swings like Bitcoin, bumping up Multiplier gives a calmer read.
Pair It With the Ichimoku Cloud to Filter Out Relief-Rally Greens
PriMAT’s weak spot, as we just saw, is the green flip during a relief rally. The best way to cut those down is to pair it with an indicator that shows where price sits over a longer horizon than PriMAT. Here I’ve overlaid the Ichimoku Cloud (the leading spans).
Filtering relief-rally greens with the Ichimoku Cloud
If price is still under a bearish cloud when PriMAT turns green, sellers can step in on the rally.
Vowars DE ver.3.12.36
PriMAT flips green in Figure 1, but price is capped by the bottom of a bearish cloud. As Figure 2 shows, it fails to clear the cloud, flips back pink and sells off from there. Just adding the rule “stand aside on greens below the cloud, prioritize greens after a break above it” makes it easier to sit out fakeouts like this one.
A few other indicators that look like a good fit with PriMAT:
- ADX puts a number on trend strength. You can skip color flips that print while ADX is low and the market is going sideways
- Donchian Channels plot the highest high and lowest low over a set period. Checking whether the green flip bar also made a new recent high tells you how much conviction is behind the breakout
- Volume is worth a look too. If volume expands on the bar where the color flips, it’s easier to judge how much weight to give the read
All of these confirm why PriMAT’s color changed from a different angle. Stacking more moving averages that also track trend direction just gives you the same kind of lag, so pick something with a different character.
Repainting and Alerts
Confirmed bars don’t change after the fact
PriMAT doesn’t pull data from other timeframes, and it doesn’t go back and draw lines or boxes on past bars. Once a bar is confirmed, its color, midline, bands and yellow background never get rewritten.
The live bar is a different story. As the close moves, the band-break condition changes, so the color can flip before the bar closes and then revert on the close. Every color you see on historical bars is post-close, so things can look different in real time. You can check exactly when reads print by stepping through bars one at a time with TradingView’s Bar Replay.
No built-in alert conditions
PriMAT doesn’t ship with dedicated alert conditions for color flips or the yellow background. You can still pick PriMAT as the condition in TradingView’s alert dialog and build your own from the midline or band values (for example, price crossing the upper band). Keep in mind that this isn’t the same as PriMAT’s read, which needs both conditions to line up, so an alert firing doesn’t guarantee the color has changed. When an alert hits, check the color on the chart before acting.
At the start of the loaded history, no trend read has been made yet, so the candles are gray. In that stretch the warning calculation is always satisfied, so the yellow background shows on every bar. It goes back to normal once the first read prints. It’s not a bug.
When to Trust the Color, and When to Question It
When to trust the color
- Trending markets on higher timeframes like the 4H or daily
- The read rarely flips on pullbacks or relief rallies, even when price slips past the midline
- Candles are color-coded, so the trend state is obvious at a glance
- Only three settings, so it’s clear which way to tweak
- Confirmed bars never repaint
When to question the color
- Won’t catch the first leg of a reversal, such as right after a top or bottom
- In sizable relief rallies during a downtrend, a late green flip can turn into a fakeout
- Flips and yellow backgrounds pile up in tight ranges on timeframes like the 1-minute
- The yellow background shows up both on pullbacks and right before reversals, so it can’t call direction on its own
- No built-in alert conditions
PriMAT Is Built for Staying in the Trend
ImagePrism Moving Average Trend (PriMAT) flips its read on two conditions, the band break and the midline slope, and shows that read by painting the candles themselves. It’s better suited to riding a trend for as long as it lasts than to calling turns early.
Having run it from the 1-minute to the weekly, I found it easiest to work with on the 4H to daily. It rarely flips on pullbacks, and treating the yellow background as a “trend losing steam” marker gives you one more input for managing open trades. On lower timeframes and during relief rallies, though, the late read sometimes turned into a fakeout, so filtering direction with the higher-timeframe color or the Ichimoku Cloud is the way to go.
If you trend-follow with moving averages and keep second-guessing yourself every time price loses the line, PriMAT’s sticky read should suit you. Start with the defaults, put it on your usual timeframe and one timeframe up, and compare how the colors flip.









