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

khpro59

Expert Trader
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
AddLabel(yes,
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
 
Thread starter Similar threads Forum Replies Date
C Simple MACD + RSI Indicator Questions 1
F RSI - doji signal Questions 0
S Multiple Time Frame RSI Questions 5
M EMAcross +RSI Watchlist Questions 1
R RSI-EMA-Bollinger Signal? Questions 1

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
197 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

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?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top