Is this stock actually beating the market? Check it in a single pane
When you pick individual stocks, do you just check whether the chart is trending up? When the whole market is rallying, most stocks go up with it. What you really want to know is whether that stock is rising harder than the market.
Relative Strength(RSMK) + Perks – Markos Katsanos (RSMK from here on) answers exactly that question. It compares a stock against an index such as the S&P 500, and when the stock is stronger than the index, it plots green above zero. While the stock is lagging the index, it turns red.
It is based on the relative strength indicator Markos Katsanos introduced in the March 2020 issue of the US trading magazine “Technical Analysis of Stocks & Commodities.” The TradingView version adds a second comparison line called “CRS” and a feature that color-codes how closely the stock tracks the index. Those extras are the “+ Perks” in the name.

When I loaded it on the NVIDIA daily chart, the flow was easy to follow at a glance: a run of green from mid-April through June, a brief dip into red in early July, then back to green in August. Even stretches that look like a steady uptrend on the price chart split clearly into stronger and weaker phases once you compare them with the index.
RSMK colors whether a stock is beating the index
Even when the stock is rising, RSMK stays red as long as it is lagging the benchmark index.
Vowars DE ver.3.22.0
The key point is that it does not judge by whether the price is going up. During Figure 1 the stock is rising, but because the index rose even more, RSMK stays red below zero as shown in Figure 2. Once it crosses above zero and turns green, as in Figure 3, the stock has moved into an outperformance phase.
Not to be confused with RSI
Because the name contains “Relative Strength,” people often assume it is a cousin of RSI (Relative Strength Index). It is a completely different animal. RSI looks at the ratio of up moves to down moves within a single symbol and has nothing to do with any other symbol. RSMK compares two symbols, so think of it as a scoreboard against the market. It is not an overbought/oversold oscillator, so there are no 70/30-style reference levels either.
Spotting the “loser” in a bull market and the “winner” in a selloff
The idea behind RSMK clicks once you picture two scenarios.
Losing in a bull run, winning in a selloff
RSMK ignores whether price goes up or down. It tracks the gap versus the index.
Vowars DE ver.3.22.0
Figure 1 is a case where the index gained 18% while the stock gained only 10%. The stock is up, but it is being left behind by the index, so RSMK goes negative. Figure 2 is the opposite: the index fell 15% while the stock held its loss to 5%. The stock is down, but it took less damage than the index, so RSMK goes positive.
That “positive in a down market” reading is information you only get from RSMK. Stocks that stay green while the whole market is breaking down are worth keeping on your radar as candidates that may lead once sentiment recovers. On the flip side, a stock that stays red during a bull market may be rising without attracting real money, and that possibility is worth keeping in mind.
RSMK does not tell you “up or down.” It tells you “over the same period, how much stronger was it than the index?” Rather than using it to decide trade direction, use it to narrow down which stocks deserve your attention.
What you see in the pane
Add it with default settings and a new pane opens below the chart with “RMSK” in the top-left corner. The indicator is RSMK, but the pane label has the letters swapped to “RMSK,” which is handy to remember when you are looking for it. Here is what the pane contains.
| Element | Appearance | Meaning |
|---|---|---|
| RSMK fill | Semi-transparent area, green above zero and red below | How much the stock is beating or lagging the index |
| RSMK histogram | Thin vertical bars in the same color as the fill | The same value drawn again as bars |
| RSMK line | Green/red line tracing the edge of the fill | The RSMK value itself |
| Signal | Thicker yellow line | 20-period EMA of RSMK |
| CRS | Bright green / bright red line | A second comparison line (shown by default) |
| Zero line | Faint yellow band plus a white dashed line | Level where the stock and the index are even |
| Background | Darkens the whole pane | Background for readability (Dark Background) |
The fill, histogram and line all plot the same RSMK value on top of each other, so just read them as one unit. The switch between green and red always happens at zero.
Dark Background simply darkens the pane background. If it looks out of place on a light-theme chart, you can turn it off in the Style tab of the settings. The lines such as RSMK and Signal, however, do not show individual color or width options in the Style tab, so you choose the colors from the two presets in ========== Color Scheme ==========, covered later.
Under the hood: the stock/index ratio compared with 90 bars ago
The math is simple. It takes the stock price divided by the index, measures how much that ratio has moved versus 90 bars ago on a log scale, and lightly smooths it with a 3-period EMA.
What RSMK, Signal and CRS actually measure
All three track how much the stock/index ratio has moved versus 90 bars ago.
Vowars DE ver.3.22.0
Figure 1 is RSMK itself, Figure 2 is Signal and Figure 3 is CRS. All of them look at the same stock/index ratio, so RSMK and CRS cross zero at almost the same time. The only difference is how big the swings get, which we will look at in a later section.
“Log scale” may sound intimidating, but you do not need to think about the math when reading it. An RSMK of 10 roughly means “about 10% stronger relative to the index than 90 bars ago,” and that mental picture is enough.
Read it in order: zero line, Signal, then CRS
There are three things to check in the pane. Going through them in this order makes the call easier.
1 Use the zero line to see who is winning
Start with whether RSMK is above or below zero. Green means the stock is beating the index, red means it is lagging, and that is the core way to read RSMK. The sample trading rules published in the Traders’ Tips section of the same TASC issue also used a cross above zero as the buy trigger and a cross below as the exit.
While it chops around zero, the stock is moving roughly in line with the index. It is a toss-up, so there is no need to react to every small color flip there.
2 Use Signal crossovers to spot a shift in momentum
Next, check where RSMK sits relative to the yellow Signal line. Signal is a 20-bar average of RSMK, so when RSMK crosses above it, momentum versus the index has turned up.
A Signal crossover means the gap is starting to close
While RSMK is still below zero, the cross above Signal already shows the shift.
Vowars DE ver.3.22.0
At Figure 1, RSMK is still red below zero. Even so, the cross above Signal tells you the underperformance is starting to shrink. From there it takes about 30 bars to get back above zero at Figure 2, and in the meantime the price broke out of its range, as shown in Figure 3. Signal’s job is to flag the change in a stock earlier than waiting for the zero cross.
Signal crossovers come before the zero cross, but in sideways markets they cross back and forth repeatedly. Treat it as a two-step process, take notice on the crossover and gain conviction on the zero cross, and you are less likely to get whipsawed.
3 Use the gap to CRS to gauge how big the win is
Last comes CRS, drawn as a bright green line. When the outperformance or underperformance is small it almost overlaps the RSMK line, but when the stock is crushing the index, CRS pulls away above it on its own. The wider that gap, the bigger the margin by which the stock is beating the index. The next section covers this in detail.
CRS and RSMK use different yardsticks
CRS stands for Comparative Relative Strength. It makes the same comparison as RSMK, but keeps it as a percentage instead of a log value. It helps to think of the two lines as measuring the same outperformance with two different yardsticks.
The bigger the outperformance, the more CRS spikes
Same win or loss, different swing: CRS uses percentages while RSMK uses logs.
Vowars DE ver.3.22.0
As in Figure 1, when the stock is far ahead of the index, CRS stretches to nearly twice RSMK. Conversely, when it is badly lagging, as in Figure 2, RSMK sinks deeper. Both cross zero at almost the same point, so the win/lose verdict is the same and only the way the size is expressed differs.

On the NVIDIA weekly chart, the difference was extreme. Around mid-2024, CRS climbed to nearly 600 while RSMK stayed around 200. Because it compares with 90 bars ago, on a weekly chart you are looking at a gap of roughly one year and nine months, and the more a stock has run up, the more CRS spikes.
Why RSMK is better for comparisons
RSMK measures wins and losses on the same scale
Whether the stock/index ratio doubles or halves, RSMK swings by the same amount.
Vowars DE ver.3.22.0
CRS, being a percentage, reads +100 when the ratio to the index doubles and −50 when it halves. Both are a 2x difference, yet the numbers are not the same size on the winning and losing side. RSMK uses logs, so as Figure 1 shows, doubling and halving both land at the same ±69. As Figure 2 shows, CRS has a habit of inflating wins and shrinking losses.
That is why RSMK is the fairer number to use when comparing several stocks side by side or comparing up phases with down phases. CRS works best as a supporting line when you want an intuitive feel for how big the margin is.
Use Correlation Color to check whether it moves with the index
Tick Show Correlation Color in the settings and the zero line turns into a row of small dots. The dot color shows the correlation coefficient between the stock and the index over the last 90 bars, in 8 steps.
Use Correlation Color to see if it moves with the index
Turn it on and the zero line becomes a row of dots showing correlation with the index.
Vowars DE ver.3.22.0
While bright green dots line up as in Figure 1, the stock and the index are moving in the same direction. When the dots gradually darken and turn red as in Figure 2, the stock is moving against the index. In this figure, the stock keeps climbing while the index falls.
| Dot color | Correlation | How to read it |
|---|---|---|
| Bright green | Above 0.75 | Moving almost exactly with the index |
| Green | 0.50 to 0.75 | Mostly in the same direction |
| Dark green | 0.25 to 0.50 | Same direction, but a weak link |
| Near-black green | 0 to 0.25 | Little to no correlation |
| Near-black red | −0.25 to 0 | Little to no correlation |
| Dark red | −0.50 to −0.25 | Slightly inverse |
| Red | −0.75 to −0.50 | Mostly inverse |
| Bright red | −0.75 or below | Moving almost exactly against the index |
This is most useful when RSMK is swinging hard into green. If green dots keep coming, the stock is “rising with the index and outperforming it,” riding a market tailwind. If red dots line up, the stock may be moving on its own catalysts, and that tells you it is a bit risky to talk about its performance versus the market from the RSMK number alone.
With Correlation Color on, the yellow band and the white dashed zero line disappear, and the row of dots sits at the zero level instead. The dots are drawn at zero, so you still read everything relative to zero.
The benchmark you pick changes the answer
RSMK is a ratio between two symbols, so the result depends on what you compare against. The first setting, Comparative Market Index List, is where you choose that benchmark.
Pick the benchmark that matches the stock
What you choose in Comparative Market Index List changes what RSMK means, even for the same stock.
Vowars DE ver.3.22.0
The list contains six indexes, Dow Jones, NASDAQ, RUSSEL 1000, RUSSEL 2000, RUSSEL 3000 and Nifty (India’s benchmark index), plus Manual Input. By default it is set to Manual Input, and the Manual Input field below it holds the S&P 500 CFD (SPCFD:SPX). If you leave it alone, you are comparing against the S&P 500.
To compare against an index that is not on the list, select Manual Input in Comparative Market Index List as shown in Figure 1, then type the symbol into the Manual Input field. Japanese stocks against the Nikkei 225 or a TOPIX-based index, semiconductor names against a chip index or ETF, and so on: pick the benchmark that stock is normally measured against.
It does not have to be an index. Put two symbols side by side, say two competitors in the same sector or gold versus silver, and you can track which one is stronger in a single pane.
RSMK pulls in the benchmark value on every chart bar, and during hours when the benchmark is not trading it reuses the last available value. If you pair a 24/7 crypto asset with a US index, all the price action overnight and on weekends while the index is closed shows up as the stock’s own outperformance or underperformance. The basic rule is to pick a benchmark that trades during the same hours, such as a US index for US stocks.
Also note that indexes selected from the list are pulled in using regular trading hours data only, without extended hours. On intraday charts with extended hours shown, keep in mind that those hours are also calculated with the benchmark value frozen.
Settings and how to tune them for your goal
Here are the settings. Some of the names appear in the settings dialog with “=” divider lines or leading spaces.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Comparative Market Index List | Manual Input | An index that matches the stock’s market | Choose the benchmark index from the list. Select Manual Input to compare against the symbol in the field below |
| Manual Input | SPCFD:SPX | Keep it for US stocks; use the relevant index for other markets | Sets the benchmark symbol directly. Only used when Manual Input is selected in the list |
| ============= Source ============= | close | close | Price used for both the stock and the index. Changing it from close changes the benchmark’s price basis too |
| RSMK/CRS Period | 90 | 90 on the daily, 30–45 for short-term checks, 25–50 on the weekly | How many bars back to compare. Higher gives a longer-term verdict; lower makes it flip more often. Also used for CRS and the correlation calculation |
| Smooth RSMK/CRS | 3.0 | 3.0 (1.0–2.0 for finer detail) | How much RSMK and CRS are smoothed. 1.0 gives the raw unsmoothed value; higher values make the line smoother but slower to react |
| Signal Period | 20 | 20 (30–40 to cut down on fakeouts) | Averaging length for Signal. Lower values hug RSMK more closely and produce more crossovers. Cannot be set below 10 |
| ========== Color Scheme ========== | Lime/Red | Personal preference | Lime/Red fills in green and red; Blue/Orange in blue and orange. Signal is yellow with Lime/Red and pink with Blue/Orange |
| Show Comparative Relative Strength | CRS | CRS (Hidden for fewer lines) | Controls the CRS display. Hidden turns it off; CRS + Signal also adds a blue average line for CRS |
| Show Correlation Color | Off | On only when checking the link to the index | When on, the zero line becomes colored dots showing the correlation coefficient |
How the period changes the verdict
The setting with the biggest impact is RSMK/CRS Period. The default compares with 90 bars ago, which on a daily chart means you are looking at just over four months of relative performance.
A shorter period catches short stretches of underperformance
Same price action, but cutting RSMK/CRS Period from 90 to 30 makes the verdict flip more often.
Vowars DE ver.3.22.0
With the same price action, a stretch that stays green the whole way at 90 bars, as in Figure 1, shows brief underperformance in red at 30 bars, as in Figure 2. Neither is “right.” Choose based on the time frame you want to judge outperformance over. If you want to find stocks that are strong over several months, stick with the default 90; if you want to track shorter shifts in momentum, something around 30 to 45 is a good starting point.
On a weekly chart, 90 bars is roughly one year and nine months. If you want a more recent read, shortening it to 25 (about six months) or 50 (about a year) gives you a feel closer to 90 on the daily. RSMK/CRS Period steps in increments of 5, so round numbers like these are easy to work with.
Toggle the display to keep only what you need
Toggle the display to keep only what you need
Show Comparative Relative Strength and Color Scheme change the number of lines and the colors.
Vowars DE ver.3.22.0
If all the lines feel cluttered, set Show Comparative Relative Strength to Hidden and you get just RSMK and Signal, as in Figure 1. When you are new to it, getting used to the readings in this view first is a good approach.
Set ========== Color Scheme ========== to Blue/Orange and wins are filled blue and losses orange, as in Figure 2. This helps when the green/red clashes with your candle colors. Note that the CRS line stays bright green and red regardless of the color scheme.
What I found switching timeframes on NVIDIA
For this review I used NVIDIA, a US single stock where comparing against an index is clearly meaningful, and checked everything from the 15-minute to the weekly chart. The benchmark was the default S&P 500 CFD throughout.

The clearest example on the daily was the red trough from late February to May 2025. Price was breaking down hard at the time, and RSMK sank to nearly −30, showing it was clearly weaker than the index as well. It got back above zero in June, a little after the price started to recover, and from there the green kept expanding, showing the stock was climbing faster than the index.
On the 4-hour chart green and red alternated every few weeks, and on the 1-hour chart every few days to a week. On the 15-minute chart, RSMK plunged into deep red on the early-November selloff and stayed red. Keeping 90 bars on shorter timeframes means you are only looking at a few days of relative performance, so a single big recent move can swing the verdict hard.

Lining them up, RSMK was easiest to work with on the daily and weekly. It works on intraday charts too, but the information tends to be along the lines of “stronger than the index this morning,” and the daily and above feel more solid as the basis for stock selection. If you use it intraday, it works best as a supporting check: pick strong stocks on the daily first, then confirm that RSMK stays green during pullbacks.
The daily pairs well with swing trading, and the weekly with position trading where you hold for several months or longer. Try splitting the roles: use the daily and weekly to decide which stocks to watch, and the lower timeframes to confirm when to get in.
Pair it with Donchian Channels to catch breakouts in strong stocks
RSMK tells you which stocks to focus on, but not where to enter. Overlaying an indicator that marks price boundaries on the main chart splits the roles neatly. Here I combined it with TradingView’s built-in Donchian channels.
Catch breakouts in stocks that are beating the index
Combine a Donchian Channel breakout with RSMK holding above zero.
Vowars DE ver.3.22.0
Donchian Channels connect the highest high and lowest low of the last 20 bars. When RSMK has already turned green above zero before the breakout, as in Figure 1, and price then closes above the upper channel, as in Figure 2, you have “a stock that is beating the index making a new high.” The strength of this combo is that it separates these from breakouts that were just dragged up by the index.
I also found it works well with these indicators.
- Chaikin Money Flow (CMF). Check whether money is actually flowing in while RSMK is green.
- ADX. RSMK is a comparison with the market, so ADX adds a separate read on how strong the stock’s own trend is.
- Aroon. It shows how many bars have passed since the last high, which gives you a gauge for how deep pullbacks in strong stocks are running.
Where it shines and what to watch for
Where it shines
- Shows at a glance whether the stock is beating the index, separate from whether price is up or down
- Finds stocks that are outperforming the index even in a down market
- Measures wins and losses on the same scale, making it easy to compare across market phases and symbols
- Lets you pick any benchmark, so it also works for sector-vs-sector or pair comparisons
- Correlation Color even shows whether the stock is moving with the index
What to watch for
- Because it compares with 90 bars ago, it signals turns later than price does
- The verdict for the same stock changes depending on the benchmark you choose
- When the stock moves almost in line with the index, the color flips frequently around zero
- It does not show trade direction, so you need to work out entries separately
- RSMK does not display for symbols with fewer than 90 bars of history since listing
What you should know before using it
Past readings do not repaint
RSMK pulls in the benchmark value bar by bar on the same timeframe as the chart. Values and colors on confirmed bars do not change afterward. On the bar that is still forming, the value moves with the stock and the index, but it locks in once the bar closes. You can trust that the green and red you see on historical bars looked the same in real time.
An analysis tool for stock selection, not a buy/sell signal
RSMK does not plot any buy or sell arrows or labels. If you trade it mechanically, buying on green and selling on red, you will run into cases where it turns green simply because the stock is “less bad than the index” while both are dropping hard. Outperforming the index and the price going up are two different things, so always combine it with your read of the price chart.
Build your own alerts
This indicator has no built-in alert conditions. TradingView’s alert dialog does let you use values from community indicators as alert conditions, so it is worth checking whether you can set something like an RSMK zero cross. The available options can vary, so confirm on your own screen. If you want to step through past moves one bar at a time, Bar Replay is also a good way to follow the color changes.
RSMK compares with the value 90 bars ago, so neither RSMK nor CRS is drawn for roughly the first 90 bars of the chart. For recent IPOs, or when only a few bars are loaded, lowering RSMK/CRS Period makes it appear sooner.
A habit of watching only the strongest stocks
ImageRelative Strength(RSMK) + Perks – Markos Katsanos shows you something the price chart alone cannot: a stock’s strength relative to the market, in just two colors, green and red. Information that is easy to miss when you only look at price, such as red stocks in a bull market and green stocks in a selloff, starts jumping out at you.
The workflow goes like this: on the daily or weekly, keep the stocks with RSMK above zero on your shortlist, use Signal crossovers to catch early signs of change, and decide your entry from breakouts or pullbacks on the price chart. Add CRS and Correlation Color as supporting checks on the size of the outperformance and the link to the index, and you have more to base your decisions on.
The more often you pick individual stocks or ETFs, the more your watchlist will look different. Start by matching the benchmark index to the market you actually trade.











