Webby's RS Line For ThinkOrSwim

Webby RS Line,
https://www.tradingview.com/script/4qgg7f1C-Webby-s-RS-Line/
can this be converted? Mike Webster RS line above the 21 SMA


It is not this indicator:
https://usethinkscript.com/threads/...le-indicator-webbys-rsi-for-thinkorswim.3638/
They are two different indicators, the RS Line is easier to decipher than the simple indicator.

Has anyone seen the Webby RS Line indicator? it is different from the
webby RSI, this just show where the RS line is in relation (above or below) the 21 MA as seen in this video?
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Webby RS Line,
https://www.tradingview.com/script/4qgg7f1C-Webby-s-RS-Line/
can this be converted? Mike Webster RS line above the 21 SMA


It is not this indicator:
https://usethinkscript.com/threads/...le-indicator-webbys-rsi-for-thinkorswim.3638/
They are two different indicators, the RS Line is easier to decipher than the simple indicator.

Code:
//@version=5
indicator(title = 'Webby\'s RS Line')

// inputs
index       = input.symbol(title='Index to Compare', defval='SPX')
upColor     = input.color(color.blue, 'RS Line Above 21 Color')
downColor   = input.color(color.red, 'RS Line Below 21 Color')
emaWidth    = input.int(title='EMA\'s Line Width', defval=1, minval=1, maxval=5)

//calculations
spx     = request.security(index, timeframe.period, low)
rs      = (low / spx) * 100
ema     = ta.ema(rs,21)
dist    = ((rs - ema) / rs) * 100
ema1    = ta.ema(dist, 3)
ema2    = ta.ema(dist, 13)

//colors
histCol = dist > 0 ? upColor : downColor
ema1Col = ema1 > ema1[1] ? color.lime : color.maroon
ema2Col = ema2 > ema2[1] ? color.green : color.red

//plots
plot(dist, 'Distance', color = histCol, style = plot.style_histogram, linewidth = 2)
plot(ema1, color = ema1Col, linewidth = emaWidth)
plot(ema2, color = ema2Col, linewidth = emaWidth)

Has anyone seen the Webby RS Line indicator? it is different from the
webby RSI, this just show where the RS line is in relation (above or below) the 21 MA as seen in this video?
check the below

CSS:
#/ This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
#// © Amphibiantrading
#indicator(title = 'Webby\'s RS Line')
# request from www.usethinkscript.com members
# Converted by Sam4Cok@Samer800    - 07/2023
declare lower;
#// inputs
input index       = "SPX";    # 'Index to Compare'
input movAvgType = AverageType.EXPONENTIAL;

DefineGlobalColor("up", CreateColor(33,150,243));
DefineGlobalColor("dn", CreateColor(255,82,82));
DefineGlobalColor("lime", CreateColor(0,230,118));
DefineGlobalColor("maroon", CreateColor(136,14,79));
DefineGlobalColor("green", Color.GREEN);
DefineGlobalColor("red", Color.RED);
#//calculations
def spx  = low(Symbol = index);
def rs   = (low / spx) * 100;
def ema  = MovingAverage(movAvgType,rs , 21);
def dist = ((rs - ema) / rs) * 100;
def ema1 = MovingAverage(movAvgType, dist, 3);
def ema2 = MovingAverage(movAvgType, dist, 13);

#//colors
def histCol = dist > 0;
def ema1Col = ema1 > ema1[1];
def ema2Col = ema2 > ema2[1];

#//plots
plot movAvg1 = ema1;
plot movAvg2 = ema2;
plot Distance = dist;

Distance.SetLineWeight(2);
Distance.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Distance.AssignValueColor(if histCol then GlobalColor("up") else GlobalColor("dn"));

movAvg1.AssignValueColor(if ema1Col then GlobalColor("lime") else GlobalColor("maroon"));
movAvg2.AssignValueColor(if ema2Col then GlobalColor("green") else GlobalColor("red"));
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
443 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