JohnMuchow

RS Line - Gauge Performance vs Index

Overview:
This implementation of the RS Line mimics how Investor's Business Daily and CANSLIM investors measure growth stock performance versus the S&P 500 .

If you are looking at a weekly chart, the RS Line is the performance of the stock over the past week versus the S&P 500 over that same time frame. The same logic applies to the daily and monthly charts, only the time frames are different.

If a stock moves up for the day/week/month and the S&P 500 does not, the RS Line will move up. If a stock ends the day/week/month flat, yet the S&P 500 moves up, the RS Line will go down.

Usage:
- Look for an upward sloping line.
- The steeper the line, the better.
- Can be used for viewing long-term trend.
릴리즈 노트: Colors for all of the RS Line variations can now be configured.
릴리즈 노트: Version updates:

✓ Support for any index, defaults to S&P 500 (SPX).
✓ Default plot color now shows on both dark and light modes.
릴리즈 노트: v4 version updates:

The max vertical offset on where to show the RS Line is now 200. This is necessary to accommodate scaling requirements for some indexes.
릴리즈 노트: v5 version updates:

One helpful tool when viewing an RS Line is to use a trendline, which can provide insight into the bigger picture performance of a stock versus the S&P 500. With this release of the RS Line you can now configure two trendlines that will be drawn for you, based on the criteria you specify.

The trendlines will be colored green or red based on the direction of the trend. You can also configure how far to look-back for each line, providing information for both short-term and long-term traders. For example, if you set a trendline look-back to 10, it will look back 10 days on a daily chart, 10 weeks on a weekly chart, etc

The configurable trendlines offer the following features:

■ Trendlines can be used on any timeframe
■ Trendlines are automatically colored based on the direction:
green for uptrend, red for downtrend
■ Plot up to two trendlines
■ Trendline width can be adjusted
■ Configurable look-back values

Two examples are shown below: APPL and CRSR


릴리즈 노트: v6 version updates:

The following new features have been added:

■ Draw most recent high based on your preferred look-back range
■ Set color preferences for RS Line

Please leave a comment if you have suggestions on features you'd like to see.

More updates coming soon...
릴리즈 노트: v7 version updates:

New features:

■ Visual callout to show RS Line at new high
■ Configurable callout shape and color


릴리즈 노트: v8 version updates:

■ For an IPO, verify look-back date range.
릴리즈 노트: v9 version updates:

■ Visual callout to show the RS Line at a new high before the price reaches a new high.
■ Visual callout to show the price at a new high.

Historical research of past big winners has shown that an RS Line at a new high before the price reaches a new high, may proceed a significant move up. This bullish signal is now much easier to identify.

Example #1 - Microsoft in 1986

Over approximately 8 months, MSFT was up over 200% before a decisive close below the 50-day SMA.


Example #2 - OKTA in 2020

A more recent example is OKTA. In just 5 months there was a 50% move up before closing below the 50-day SMA.

릴리즈 노트: v10 version updates:

■ Added an option to show a configurable moving average of the RS Line.
릴리즈 노트: v11 version updates:

■ Minor changes to default settings.
릴리즈 노트: v12 version updates:

■ Add an option to show/hide RS Line recent high line.
■ Change order of various Settings for easier navigation.
릴리즈 노트: v13 version updates:

Given the indicator supports any index to gauge relative performance, as more indexes were tested, it became clear a wider range of offset values for vertical placement was needed.

■ The vertical offset of the RS Line can be between 1 and 1500.

릴리즈 노트: v14 version updates:

■ Update Settings dialog with section titles to make navigation easier.
■ RS Line only on daily, weekly and monthly charts as intraday skews the chart.
릴리즈 노트: v15 version updates:

■ Optional moving average is now shown only on daily, weekly and monthly charts as intraday skews the chart.

릴리즈 노트: v16 version updates:

■ Minor updates so the RS Line and related information are only shown on daily, weekly and monthly charts.
릴리즈 노트: v17 version updates:

■ Changes to the Settings dialog to simplify the user interface.
■ RS Line is no longer displayed on futures or indexes as these charts can becomes skewed.
릴리즈 노트: Update the chart to show various features of the RS Line indicator.
릴리즈 노트: v18

■ Updates to layout and color configurations.
릴리즈 노트: v19

■ Minor change to scaling of the chart.
릴리즈 노트: v20

■ Updates to RS Line layout.
■ Customization of line colors and width.
■ Simplification of Settings dialog.
릴리즈 노트: v21

■ Auto-generated trendline updates.
■ Specify timeframe(s) to show the RS Line.
릴리즈 노트: v22

■ Updates to trendline calculations.
릴리즈 노트: v23

■ RS Line and related data no longer shown for indexes and futures.
오픈 소스 스크립트

진정한 TradingView의 정신에 따라, 이 스크립트의 작성자는 스크립트를 오픈소스로 게시했기에 거래자들이 이해하고 확인할 수 있습니다. 작가님께 건배! 스크립트를 무료로 사용할 수 있지만, 게시물에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?
30+ years in software dev. Technology author. Growth stock & crypto trader.

If you find my indicators helpful, please consider a donation:

Bitcoin: 36A51Xdi4HVGYxH86kRvQ74Tzp5xWU1HvU
Paypal: https://www.paypal.com/donate?hosted_button_id=2MG5TY4GMGJD6

코멘트

John - thanks for this indicator and all the work you do on the other ones as well. I find them very helpful in my daily process. Would it be possible to add an additional EMA? I'd like to use the RSI crossback w/ short term EMAs in my process. I see it in the script but dont want to miss out on any future edits you make either! Thanks again.
100 코인
+1 응답
JohnMuchow domg317
Thank you for the coins! Are you referring to adding an additional moving average that is based on the RS Line versus using two moving averages based on OHLC?
응답
John, first and foremost, I dont think thanking you is enough for making this indicator available in TV.
500 코인
+1 응답
muheeb26023 muheeb26023
@muheeb26023, some suggestions and I am not sure if this is possible, but asking is half way to find out, :-) is it possible to show how many times the bubble showed up in lets say the past 30 days? or on a certain time interval?
+1 응답
JohnMuchow muheeb26023
I like the idea. Two thoughts come to mind:

- One challenge is that the "bubble" indicating a new high may show up multiple times during any interval. For example, when on a daily chart the bubble may be shown and if at some point during the day the price goes down so it is no longer a new high, the bubble will be hidden. If you are a MarketSmith user, the same concept applies there as well.

- What's the best way to indicate on the chart that a recent high has occurred on previous bars?

I'll give this some additional thought. Thanks for the suggestion.
응답
muheeb26023 JohnMuchow
@JohnMuchow, my pleasure
+1 응답
JohnMuchow muheeb26023
Thank you so much!
응답
Super helpful! Thanks, John.
500 코인
+1 응답
JohnMuchow mike_dominguez
I appreciate hearing that. And thanks for the coins!
응답
100 코인
+1 응답