Relative Strength Line by @iArpanKHello Traders!
I'm a Momentum Trader, following the Indian & US markets. Most of us are familiar with the Relative Strength (RS) indicator, popularized by Investor's Business Daily (IBD) and available on their MarketSmith platform. So, here I'm sharing a script that does the same and additionally pops an alert label when the RS line hits a new high (similar to Blue Dot appearance on MarketSmith charts).
User Settings
Inputs tab
Base Symbol : Symbol of the security/index with which you want to compare your current active symbol.
Period : Number of days since which you want to scan for a new high (default is 250 days, which approximately pops alerts for new 52 week high in RS). For example, if you want to look for new 10 days high in RS, set the Period to 10.
Style tab
RS Line : Change color using the palette provided (default is blue).
Alert Label : Show/hide alert labels by checking/unchecking the box. Change color using the palette provided. Change alert label symbol.
Precision : Default is two decimal places. Can be changed as per requirement.
Usage
The indicator consists of two components- the Relative Strength (RS) line & alert labels on new RS highs. Relative strength gives a measure of how the underlying security is performing with respect to a base index or security. For example, how is NSE:DIXON performing w.r.t NSE:NIFTY or how is NASDAQ:AAPL performing w.r.t. the TVC:SPX .
A rising RS line tells us that the underlying entity is outperforming the base entity. Similarly, a declining RS line shows under-performance of the underlying entity. A new high in RS (especially before a new high in price) often gives valuable information about the underlying security's strength w.r.t. the general market, and can tip us off to a possible breakout in the price in near future.
Making RS lists (list of stocks making new high in RS on heavy down days in index) can be very helpful to sort out leaders that are best resisting the decline and are likely to move up aggressively when the market turns favorable.
The concept of RS is extensively used by momentum traders and growth stock traders. When used in conjunction with price & volume action, this can be a very powerful tool in your trading arsenal. You can now easily spot RS trends and new highs visually by simply adding this indicator to your chart!
Conclusion
If you like this script, click on Add to favorite indicators , so that you can easily add this indicator from your favorites tab right away.
Thanks!
Relative Strength Comparison
Relative Strength RatioAbout this indicator:
This indicator goes under many different names such as Relative Strength Ratio, Comparative Strength, Relative Strength Comparison (RSC) etc.
It compares the strength of the current asset to another asset of your choice and displays the relative strength of the current asset. (Not RSI)
There are several comparative indicators published already here on TV but I have added some unique features that I think is really useful.
When to use it:
This is useful when you want to compare for example a stock with its sector to find out if the stock is a leadership stock in that sector or main index.
You could also use it to compare the sector to its index etc.
If you want to compare for example a stock to both its index and its sector at the same time I suggest you add 2 instances of this indicator.
In many trading systems you are supposed find the strongest tickers by identifying "layers of strength" like 1. The strongest asset class that money is flowing into (like stocks, commodities, bonds, etc.) 2. Find the strongest sectors. 3. Find the stocks outperforming those sectors. 4. Find some kind of entry signal there.
How it works:
The indicator calculates an "RS line" (Relative Strength) by dividing the current ticker with a ticker of your choice. This creates a ratio or pair similar to how currencies are related to each others like USDGBP (dollar against pound). The RS line is black by default so you might want to change its color if you use a dark theme.
If the RS line is moving up it means your current asset is stronger than the asset you are comparing it with and vice versa.
Use the simple moving average to quickly see long term strength trends.
Features
RS line
Shows the relative strength of the current asset.
SMA
This Simple Moving Average has directional coloring; green when it is angled up and red when it is angled down. You can customise the period in the settings. If you don't want the color change just make both up/down color the same.
Relative market label
This displays the market you are currently comparing with as a label next to the last data point.
Because I tried stocks in 2 different countries I want to know which index I am comparing with and this label saves me from going into the settings to check. I find it to be a life saver!
Please let me know if you find any problems or if you have any ideas for improvement
SectorsThis script attempts to show the relative strength of the 11 sectors in the SPX, which can be accomplished in three ways:
1. Sectors - displays all sector indices as they appear normally
2. Sector Relativity - displays each sector divided by the sum of the other 10 sectors
3. Sector Alpha - displays the alpha of each sector as compared to the sum of the other 10 sectors
I have seen some other iterations of this script that compare each sector to the SPX as a whole, a couple problems with that:
1. SPX sector weightings are unequal and change quarterly, meaning you will get an inaccurate depiction of relative sector strength across time.
2. Even if using an equal-weight SPX, you would be comparing a sector to itself as all 11 sectors are included in the SPX, not just the complementary 10 you are looking to compare one sector to.
For more information on the sectors in the SPX or the calculation of Alpha, visit the links at the top of the script.
*Includes an option for repainting -- default value is true, meaning the script will repaint the current bar.
False = Not Repainting = Value for the current bar is not repainted, but all past values are offset by 1 bar.
True = Repainting = Value for the current bar is repainted, but all past values are correct and not offset by 1 bar.
In both cases, all of the historical values are correct, it is just a matter of whether you prefer the current bar to be realistically painted and the historical bars offset by 1, or the current bar to be repainted and the historical data to match their respective price bars.
As explained by TradingView,`f_security()` is for coders who want to offer their users a repainting/no-repainting version of the HTF data.
Cryptos Relative Strength Oscillator
This is an oscillator made of biggest 40 cryptocurrency/USDT pairs.
* It shows relative strength and change of crypto market during certain time on given interval.
* The tool has a bunch of data put together into one oscillator:
* top and bottom lines are made of 3 strongest and 3 weakest crypto pairs (out of 40)
* has visible names of that pairs for several candles back (it cannot show more due to TV's Pine limitations)
* in settings you can set up 2 methods of calculations:
1) % change from SMA of price, default is SMA 5
2) % changes from x-candles back, to see that change from the last candle please turn of 'Moving Average' and set up 'Bars Back' to 1
* you can change source to close/hl2/ohlc2/etc
Notice 1:
- to have nicer visibility of whole oscillator make it bigger part of whole screen then you normally use for other oscillators
Notice 2:
- scroll your mouse to widen the horizontal axis, so names of certain crypto pairs will be more readable
Notice 3:
- script has 40 Pine security functions (to gather all the data from all pairs) so it can load up to several seconds
- also every change in settings will possibly result in longer loading time
ps. This script is invite-only for the members of our trading group (info in signature, group is free of charge).
Price Volume Strength ComparatorBollinger bands says whether price or any source is relatively high or low at any particular point of time. We can apply Bollinger bands on RSI and volume indicator Price Volume Trend to identify if RSI movement or PVT movement is relatively high or low.
By calculating Bollinger %B, we can define the variation in a range between 0 to 1. By applying Bollinger %B on price, volume and strength, we are trying to compare how much they differ relative to each other.
For example, if Bollinger %B of volume is higher than Bollinger %B of price, which may mean, we can still expect continuation of upward movement. If volume %B is lesser, we can interpret this as price has moved more than the volume and may retrace back.
Note: I tried adding multiple volume/strength indicators as input choice. But, if condition did not work with simple string. Have no idea why. I will try adding that later if more people show interest.
MAVERICKAMIT01-RELATIVE STRENGTHTHE SCRIPT SIMPLY DIVIDES THE STOCK PRICE BY NIFTY TO MEASURE UNDER PERFORMANCE AND OUT PERFORMANCE WITH NIFTY. YOU CAN CHANGE SETTINGS FROM NIFTY TO ANY OTHER SECTOR LIKE CNX FMCG TO MEASURE SECTOR PERFORMANCE AND UNDER PERFORMANCE !!!
wMRS | Weighted-Mansfield Relative Strength - 4CR CUPThis version of Mansfield Relative Strength ( MRS ) weights the MRSs with different lookback periods by adding the weight of 2:1:1:1 to MRS (1Q) : MRS (2Q) : MRS (3Q) : MRS (4Q).
Typically, the lookback period of a MRS is reference to a full year, i.e. 260 trading dates or 52 weeks; to better represents the relative strength of a stock to a recent performance, someone suggested to add heavier weight on the most recent quarter MRS , i.e. MR(1Q) and the same weight to other quarters, namely, MRS (2Q), MRS (3Q), MRS (4Q).
For some of the stocks you may be interested was IPO not long ago, the lookback period is relaxed for customizing. Once you set the total lookback period, representing the 4Q, in the indicator, the other shorter lookback periods will be auto-calculated, i.e. 1Q, 2Q, 3Q.
A simple moving average of the wMRS is also added for your easier analysis on the trend development of the strength.
MRS | Mansfield Relative Strength - 4CR CUPThere are many investors referring to Relative Strength (RS) indicator published by Investor’s Business Daily (IBD) for their analysis. Since the RS published by IBD is a proprietary indicator, no exact formulation is published on it.
Many discussion suggested that an alternative to the IBD RS is the Mansfield Relative Strength .
There are 2 parameters for Mansfield Relative Strength setting, namely the market index and the lookback period, n. the default setting of Mansfield Relative Strength adopted by Stan Weinstein was “SPY” and “52” in weekly chart and “200” in daily chart .
Stan Weinstein used the Mansfield Relative Strength indicator on weekly charts. He suggested the breakouts out of a base had to go together with rising relative strength . The Mansfield RS needs to be rising and close to or above 0.
This version of Mansfield Relative Strength relaxes these input parameters for your own choice.
The market index can be set to other market index, e.g. NDX, DJI, NI255, MOEX , TAIEX , HSI , etc. and the lookback period is relaxed to integral input, e.g. 60, 90, 150, etc.
Mansfield Relative Strength
The Relative Strength indicator adopted by Stan Weinstein in his book: “Secrets For Profiting in Bull and Bear Markets” is formulated as Mansfield Relative Strength ( MRS ).
The formula of this indicator is based on the regular Dorsey RS (DRS):
DRS = Price_stock / Price_index
MRS = 100 * (DRS_today / sma (DRS, n)) - 1)
Where:
DRS = Dorsey Relative Strength
SMA = Simple moving average over n days.
The Mansfield Relative Strength formulates as the change of ratio of DRS to its own n-day moving average, this means:
MRS equals to 0 if the DRS is exactly equal to its n day moving average.
MRS is negative if the DRS is below its n day moving average.
MRS is positive if the DRS is above its n day moving average.
Using Mansfield Relative Strength
The MRS tells the relative price movement of the stock to the market index in a period of time concern. As with the Dorsey RS , you can use Mansfield RS to examine if a stock performs better than the market.
This indicator has the advantage over the Dorsey RS that in Dorsey RS only trend matters while for Mansfield RS the values whether below or above the 0 also matters. This allows us to screen for stocks with a MRS value above 0. When we see that the MRS is far above 0 and has been above 0 for some time, we have found a stock that outperforms the market heavily. We can buy this kinds of stock when dips occur.
RS.ROC | Relative Strength - Rate of Changes - 4CR CUPFor completeness of Relative Strength studies, the Relative Strength based on rate of changes (ROC) with weighting is coded and presented as well.
The RS.ROC is similar to the formulation of RS by IBD before rank among all the stocks in the market.
The lookback period is relaxed for customizing. Once you set the total lookback period, representing the 4Q, in the indicator, the other shorter lookback periods will be auto-calculated, namely, 1Q, 2Q, 3Q.
A simple moving average of the RS.ROC is also added for your easier analysis on the trend development of the strength.
To use it later at your charting later,
1. Favorite it;
2. Select from your favorite list.
Candlestick RSThis is a candlestick charted Relative Strength indicator. It compares the chosen stock's progress compared to that of the SPY ETF ... ( SPY is used so it should hopefully update intraday). I use this indicator to see which stocks are outperforming the market.
Input Variable Descriptions:
Ratio: this variable is a float (0 to 1) that is basically how close the Candlestick RS is to the actual price action of the chart. (1.0 being right on top of it, 0.0 being as far away as possible from it)
Ballpark SPY price: this variable has to be constant, and due to the way pinescript works, you have to manually put in a ballpark of what SPY is at.
Neither of these variables influences the actual data of the indicator, but rather how it is shown on screen. It's difficult to describe, so I recommend you messing around with the variables and see what changes.
Hope this helps, I find this useful, so I figured I'd publish this... This is my first pine script so forgive me for any errors, just want to help :)
CPR Width + MTF, Offset and BarcolorsDue to the request of some users and inspired by "5 Day ADR ICT Intraday Tracker" I updated "CPR Width" and added extra functionality for your convenience.
RS Line - Gauge Performance vs IndexOverview:
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.
Exponential Regression Slope Annualized with R-squared HistogramMy other indicator shows the linear regression slope of the source. This one finds the exponential regression slope and optionally multiplies it by R-squared and optionally annualizes it. Multiplying by R-squared makes sure that the price movement was significant in order to avoid volatile movements that can throw off the slope value. Annualizing the exponential slope will let you see how much percentage you will make in a year if the price continues at its current pace.
The annualized number is the number of trading days in a year. This and the length might need adjusting for the extra bars that might be in futures or other markets. The number does not have to be a year. For example, it can be a month if you set the number to 20 or so trading days to find how much you would make in a month if price continues at its current pace, etc. This can also be used as an alternative to relative strength or rate of change.
(CoInS) Confluence of Indicators and Signals v2 skvConfluence of Indicators and Signals (CoInS) v2 skv
This time best of pivots and oscillators came to confluence to guide traders for better decision making to trade. Remember practice makes profit.
This script created for educational purpose for learners want to observe/study the indicators and its signals. Indicators HMA, SMA, Super Trend, MACD, BB, ADX/DMI/DMS, RSI, Elder Impulse and Pivots CPR, Camarilla, Floor, SQR are used in this script and the display of them controlled through the indicator settings. Values are tuned and can't be changed. Only the current day values will be displayed.
Observe the signals and reversal points at pivots or moving average lines. The bright green up triangles and bright orange down triangles indicates momentum, the faded triangles indicates the momentum is getting weak.
At start of the day, this script indicates whether today is trending or not trending for the scrip.
The SQR pivot points will move as per the trend and indicate the resistance and support level at that time. The color crosses informs that the change occurred throughout the day.
The signals generated by this study are not recommendation and use it on your own discretion after keenly observing each and every details.
Pivots
Pivot Boss CPR with width
Pivot Boss Camarilla
Pivot Boss Floor pivots
Simple and amazing SQR pivots
Displays signals from,
RSI signals
HMA signals
Super Trend
MACD (cross and histogram signals)
Elder Impulse
ADX/DMI/DMS and BB for Momentum
I'm thankful to trading view, various pine coders and authors contributing here and building wealth of knowledge.
*****Remember: Practice makes Profits*****
Disclaimer
1. Only for educational and learning purpose
2. For Intraday and scalping strategies and 5 and 15 min TF only
3. Do paper trade before using any information for actual trading
4. Not swing or positional trade
5. Use it on your own discretion and no one else responsible for the profit/loss except you
Percentage Relative StrengthA relative strength indicator that compares your main symbol (one on your chart) strength to another symbol by percentage.
The result is plotted as a histogram showing which symbol is rising or falling more in percentage.
In case your chart symbol is TSLA (Tesla) and the indicator 'Symbol to compare' is SPX:
GREEN area (above zero) means TSLA is rising more than the SPX.
RED area (below zero) means TSLA is falling more than the SPX.
To these who wants to understand calculation, it's pretty straightforward.
For each asset we calculate everyday percentage change based on previous close and current close.
We take main asset (chart symbol) percentage and subtract it from percent of change of the symbol we want to compare to.
Result are smoothed by SMA (Simple Moving Average)
You can select different indexes or cfds such as S&P500 (SPX), NASDAQ 100 (NSX), RUSSELL 2000 (RUT) and NASDAQ (IXIC).
Default is S&P 500 (SPX).
Enjoy and Like if you like.
RelativeStrengthComparative_IBD_YRKI am publising Relative Strength Comparative.
It is be used to compare a Stock's Performance against another stock/index (Default NIFTY50)
I also devised a Plot RS Rating which is inspired from IBD's RS Rating and matches to some extent. You can turn off/on the RS Rating as per need.
Example: ITC vs NIFTY 50 it will be ITC / NIFTY
The Indicator can be used in Multiple ways:
1) Check Relative Strength
2) Check RS Rating (This is not Accurate as of now since IBD compares the ratings of all the stocks in an Exchange)
3) Can be used as a Spread Chart for the Division (We need to not divide every time we change Stocks)
4) Design a Template exactly as MarketSmith by using the TradingView feature of "Move to --> Existing Pane Above"
The Formula i used for RS Rating is below with more weightage on the 3 month performance and lesser on 12 month Performance. I am open to Modification of this Formula if a better suggestion
// relative strength IBD style
ThreeMthRS = 0.4*(close/close)
SixMthRS = 0.2*(close/(close*2))
NineMthRS = 0.2*(close/(close*3))
TwelveMthRS = 0.2*(close/(close*4))
Pump is Coming (TEST)Making forecast with RSI for the PUMP.
It is just testing , do not trade with real acount, just observe...
Top 4 coins for the success
THETA/BTC
LEND/BTC
GXS/BTC
LRC/BTC
But you can analize for the all cryptos
Price Relative / Relative StrengthThe Price Relative indicator compares the performance of one security to another. This indicator can be used to compare the performance of a stock against a benchmark index, such as the S&P 500, or its sector/industry group. This makes it possible to determine if a stock is leading or lagging its peers.
The Price Relative is used to gauge relative strength, which is important when it comes to stock selection. Many portfolio managers compare their performance to a benchmark, such as the S&P 500. Their goal is to outperform that benchmark. In order to achieve this goal, managers often look for stocks that are showing relative strength. Enter the Price Relative. The Price Relative rises when a stock shows relative strength and is outperforming its benchmark. Conversely, the Price Relative falls when a stock shows relative weakness and is underperforming its benchmark.
Source: school.stockcharts.com
This script allows the user to
Add a new indicator pane for Price Relative (PR)
Edit the benchmark symbol (Comparative Symbol)
Edit or hide the moving average
Quickly determine if the symbol is outperforming or underperforming its benchmark
Quickly determine if the symbols is trending higher or lower based on a simple moving average
TheTradeKit (The Originals)TheTradeKit (lifetime) Indicator Suite
A data first approach. Community Second. Transparent always.
Designed for traders of any market including:
- Crypto
- Forex
- Stocks
- Commodities
With a little configuration and insight into your trading style. TheTradeKit has been designed to be as simple as selecting a pair and let the market present opportunities for you. Built with all intent of taking the emotion out of trading.
Messages me for “The Originals” access - this will be the area for beta releases whilst we build success here at TheTradeKit and for our community.
Strategy Returns optimal Buy/Sell, S/L and Target Zones with the help of confirming indicators such as:
#MovingAverages
#RelativeStregthIndex
#PivotPoints
Indicator Suite (Tuesday, 22nd September 2020)
We are constantly including beta releases; it is suggested by legal friends to take this opportunity to mention this indicator dictates research based on history only and will not forecast the future. What you perceive to be the result of the plot function may not in fact be that of what I nor, any other perceives.
Relative Strength ComparisonRelative Strength Comparison compares a security's price change with that of a "base" security or index.
You can change the "base" security from the indicator settings.
You can compare:
- Stock to other stock
- Stock to the benchmark index
- One index to another index
Relative Strength 4DimensionIn the S&C September 2020 article “Tracking Relative Strength In Four Dimensions”, James Garofallou presents a metric for evaluating a security’s strength relative to 11 major market sectors and over several time periods. All this information is squeezed into a single value. Maybe at cost of losing other important information? In this article we’ll look into how to program such a beast, and how it fares when we use it for rebalancing a stock portfolio.
This is a redesigned version for an european point of view.
I used 10 index for the comparison.
feel free to tip me ;-)
Periodic price change comparisonPeriodic price change.
Application:
Sector rotation analysis by comparing different tickers.
Simple statistical analysis (with lookback period) for knowing how good they were.
If you are a believer in sector rotation, you can add different sector stocks to see which of them are lagged behind and buy them.
In this example, you could see tesla periodically fall behind the market. You can buy it when it is on that zone.
And you can also refer to the sharpe ratio and the average gain rate on the chart to see how good the stocks were.
Relative Strength (Mansfield RS)This version of the Mansfield Relative Strength Indicator uses the unflattened version of the indicator recommended on the Stage Analysis website, as the slope angle of "Zero Line" (52 week MA of the stock / S&P 500) gives additional useful information that can't be seen on the traditional flattened version of the Mansfield Relative Strength Indicator.
Simple RSI Spotter™TradeChartist Simple RSI Spotter is an elegant version of the classic RSI indicator and helps spot price trends using visually engaging and appealing RSI plot and background. The Bull and the Bear background fills are highly useful for traders who like to visually understand areas of entry and exit based on RSI .
===================================================================================================================
What does Simple RSI Spotter do?
Plots RSI with visually engaging colours for Bull and Bear zones (Green and Red) with optional background fill.
Plots RSI coloured bars on main chart based on user preferred Upper and Lower RSI band.
Plots RSI based on Zero-Lag EMA smoothing (1 for Regular RSI without smoothing).
Plots Heikin Ashi RSI if enabled from indicator settings.
Plots RSI highs of Bull Zone and RSI lows of Bear Zone. Helps visually spot divergences.
===================================================================================================================
Note:
Default Settings:
5 period EMA Smoothed Heikin Ashi RSI.
For normal RSI, uncheck, Heikin Ashi RSI and change EMA RSI Smoothing to 1.
===================================================================================================================
This is a free to use indicator.
===================================================================================================================