# How can I make this RSI WL Column have a Moving Average?

#### khpro59

##### Active member
VIP
I have a 2 min RSI Watchlist Column that I use as part of my criteria for a good scalp setup. Right now, the way it stands, it'll declare whether the RSI is Rising or Falling.

Since its a 2 minute time frame, obviously the "Rising" and "Falling" parameters are met quite frequently and thus change from Rising to Falling or vice versa, often.

I want to know what the trend of the RSI is, in another words, has it been rising or falling over the last 3 bars, or so. I tried adding a moving average and then trying to determine if the current RSI value is above or below that but I'm not sure if this is the best way of accomplishing what I needed. I just want to know the current trend of RSI and not necessarily whether its rising or falling in that exact moment, but whether it has been rising or falling over a "X" amount of bars.

Here is the script I was working with:
Thanks for any help, very much appreciated!

Code:
# RSI Label
# cabe1332

# Note: You can modify the inputs

# start code

input overbought = 80;
input oversold = 20;
input rsilength = 14;
def rsi = reference RSI(length = rsilength)."RSI";

#Label
if rsi < oversold then "RSI Oversold: " + round(rsi,0) + " " else
if rsi > overbought then "RSI Overbought: " +round(rsi,0) + " " else
if rsi > rsi[1] then "RSI Rising: " + round(rsi,0) + " " else "RSI Falling: " +round(rsi,0) + " ",
if rsi < oversold then Color.orange else
if rsi > overbought then Color.red else
if rsi > rsi[1] then Color.green else Color.green);

# end code RSI

TMO and RSI Questions 0
Linear regression for rsi and slow stochastic Questions 1
RSI and CCI labels Questions 0
Percentage change in RSI over 10 trading days Questions 4
Upper Level RSI support/resistance Questions 5

87k+ Posts
421 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?