Relative Strength Moving Average CrossoverA popular technical analysis strategy is the moving average crossover. This indicator combines a crossover with the Relative Strength Line, created by William O’Neil. The RS Line is a tool used to compare the price action of a particular stock to that of an index, with the S&P 500 being the index preferred by O'Neil.
When one moving average crosses above or below another, that may be a signal of a trend change. For example, when a shorter-term moving average (aka faster moving average) of price moves up and through a longer-term moving average (aka slower moving average), it is likely the price is trending up, this is referred to as a crossover. The opposite can also be a potential signal of a change in the trend. When a shorter-term moving average crosses under a longer-term moving average, the price may be heading down. We refer to this as a negative crossover or crossunder.
This indicator allows configuration of up to two moving averages for the RS Line. Using two moving averages you can quickly identify the direction of the trend and also pinpoint where the faster moving average crosses over or under the slower moving average.
While beta testing this indicator, we performed a study using Bitcoin. In 2021 we’ve seen an increasing correlation of BTC and the S&P 500. This is most likely due to the fact that both crypto and stocks are riskier than other financial assets such as bonds and commodities. When the market is risk-off, both the S&P 500 and Bitcoin tend to sell off together.
For the BTC test case we used two moving averages of the RS Line, 8-EMA and 50-SMA. In the chart that follows you can see a breakdown of how this played out over the last ~2 years. A positive divergence is indicated by the 8-EMA of RS crossing above the 50-SMA, and vice versa for a negative divergence.
Here's another example using TSLA:
Features
■ Configure up to two moving averages for each timeframe.
■ Optional symbols indicate moving average crossovers.
■ Configure custom alerts on crossovers, for any timeframe.
■ Optional moving average cloud makes it easy to identify if slower moving average is above/below faster moving average.
■ Configurable index, defaulting to S&P 500 (SPX).
Acknowledgement
This project is a collaborative effort with @blakedavis17 a Crypto-Equity Analyst. Based on a discussion with Blake about a moving average crossover using the RS Line, we created a simple indicator to explore the concept further. We were very encouraged with the results of backtesting and decided to publish the indicator as we believe it may be a helpful tool for both equity and crypto traders.
Relativestrength
Relative Strength vs SPY - real time & multi TF analysisOne of the most requested features for TradingView is the ability to include custom indicators in the stock market scanner. While I am sure this feature is coming soon (seriously TV, PLEASE) I decided to use the amazing template provided by QuantNomad (), but I wanted to allow the user to modify the table a bit better so that a multi time frame analysis approach could be used.
The recommended way to use this indicator is to apply it three times to your chart. For each instance, assign it a plotting location (left, center, right) and choose the timeframe you wish to use for the RS analysis. By default, the relative strength of all 39 pre selected stocks will be compared against SPY, on the 5 min timeframe. I personally like having this chart on the left, then the 4 hour timeframe in the center, and the daily on the right. Not only does this setup allow you to see the relative strength/weakness of 39 stocks in real time (the one on the left), but you have all the information in front of you including how the stock has been performing relative to SPY on the 4H and D charts.
To make it easiest to read, you should disable all visual elements to the chart you are applying this indicator to. By minimizing the chart and putting it by your side, you can see the bigger picture on how all your stocks are behaving relative to the market.
If you wish to change any of the stocks I have pre selected, make sure to save your chart template. Otherwise you would need to do this every time you load the indicator to your chart which would be incredibly time consuming.
The M Score - Ultimate v5.0The M Score - Ultimate v5.0
*Introducing M score version 5.0*
Additions to the indicator:
1. 200 EMA Band (High-Low) added
2. Bottom left table - Shows All Time High/Lows (52 weeks) and % away we are from both. The values will not change in this table even if you change the timeframe.
3. Bottom center table - Performance matrix and a quick glance comparison with Nifty with different days of return. This will show if there outperformance or underperformance in the scripts and in which duration.
4. Top Right table - This indicator plots a table off to the right of the chart to help with determining timeframe continuity. A great edge is only taking trades where full timeframe continuity is in place (i.e. if you are going long, make sure other timeframes are also green).
Green candles have green colored boxes, red candles have red colored boxes.
Inside bars are represented by a circle - ⬤
Outside bars are represented by a tall rectangle - ▮
2-up bars are indicated by an up arrow - ▲
2-down bars are indicated by a down arrow - ▼
User defined options:
Pick any timeframe for the 4 boxes
Hope you will will like the efforts.
RSI Performance - TradingEDThis case study is based on a previous RSI study, but with three different counts to compare different trends. The use of this indicator is restricted to private use, and it can be used only by invitation. Different functionalities have been added to the original code, such as alerts and signals that seek to make trading much easier to interpret by any type of trading operator of any experience level, from beginner to intermediate and advanced .
Key components of the original indicator:
● The Relative Strength Index ( RSI ) is a popular momentum oscillator developed in 1978.
● The RSI provides technical traders signals about bullish and bearish price momentum, and it is often plotted beneath the graph of an asset's price.
● An asset is usually considered overbought when the RSI is above 70% and oversold when it is below 30%.
It is a momentum indicator used in technical analysis that measures the magnitude of recent price changes to assess overbought or oversold conditions in the price of an asset. The RSI is displayed as an oscillator (a line chart moving between two extremes) and can read from 0 to 100. Overbought does not necessarily mean that the price will reverse lower, just as oversold does not mean that the price will reverse higher. Rather, the overbought and oversold conditions simply alert traders that the RSI is near the extremes of its recent readings.
Main functions of this modified indicator:
1) The SOURCE for the counts can be determined by the trader (close, open, etc).
2) You can select the type of MOVING AVERAGE, among many available options ( SMA , EMA , DEMA , HMA , etc.)
3) The MEASURE can be based on a CANDLES count if you are trading OHLC Charts from 1D onwards, or if your trading is intraday, you can also select counts by MINUTES, HOURS or DAYS, depending on your trading style.
4) LENGTH, by default it will be loaded as in the STRATEGY, but considering the previous point, you can modify it according to your convenience.
5) You have the option to hide or show a LABEL at the top of the chart, with respect to the signals: BULLISH green, BEARISH red.
Main performance functions of this modified indicator:
I) In the case of the PERFORMANCE that appears at the right of the chart, you have the option to adjust the WIDTH of each box.
II) The TEXT of the PERFORMANCE is not modifiable, but you can customize the default color. *
III) The BACKGROUND of the PERFORMANCE, you can customize the default color. *
IV) You have the option to hide or show a PERFORMANCE that appears at the right of the chart.
Main functions to customize the style of this indicator:
a) You can select the color for the ADJUSTED LEVEL and for the MOVING AVERAGE, with the colors that best suit you.
b) The CROSSOVER/CROSSUNDER signal between the MOVING AVERAGE and the ADJUSTED LEVEL can also be customized. *
c) For any type of SIGNAL, it is painted as a VERTICAL LINE in the graph, you can change the color that comes by default. *
d) In the case of the LABEL that appear at the top, the text is not modifiable, but you can customize both the type of label and change the default color. *
e) You can select the color for OVERVALUED and for UNDERVALUED levels, with the colors that best suit you.
f) You can select the colors for the BACKGROUND of the indicator according to the trend, whether it is BEARISH or BULLISH, with the colors that best suit you. *
* By default, they are marked as red for downtrends and green for uptrends.
RVI Relative Volume IntradayRVI Relative Volume Intraday is a simple label next to the last bar that shows the relative volume as a percentage of the ratio of today's volume to the average volume for the same intraday time period of the last five days. Useful for break-out intraday strategies.
Relative Strength (IBD Style)This script is meant to give you a Relative Strength indication of the stock. The goal is to use a similar calculation as used by IBD.
It calculates the performance of the current stock for the last year (most recent quarter is weighted double) and compares it to the performance of a reference index or ticker (default is "SPY").
IBD would give you a value between 0 and 100 because this value is the percentile within all stocks. This is not possible with Pine Script at the moment.
So here you get a Relative Strength value that is >0 if the stock is stronger than the index and <0 if it is weaker than the index.
You can still compare the Relative Strength values between stocks (bigger is better) but you won't know which percentile it is right off the bat.
TRIX RSI - Tripple Exponetial Relative Strength (TRSI) This indicator applies the RSI formula over the TRIX indicator to get the TRIX RSI.
The EMA and the TRIX RSA cross gives you an indication for a trend change
Relative Strength - Price & VolumeNow you can see both Price & Volume Relative Strength Together
If both Price & Volume increases, then BULLISH
If both Price & Volume decreases, then UNCERTAIN, NEUTRAL, TRAP
If Price decreases & Volume increases, then BEARISH
Relative Strength 3D Indicator [CC]This is a custom indicator of mine loosely based on the work by James Garofallou (Stocks and Commodities Sep 2020 pg 14) and this is meant for medium to long term trend confirmations. The idea behind this indicator is to capture 3 different dimensions of trend strength. The first dimension captures the overall strength of the underlying stock vs the market (in this case the S&P 500). The second dimension captures the overall trend strength by assigning a scoring system so when all faster moving averages are stronger than slower moving averages then it gets the max points. The final dimension is the strength of the overall strength of everything so far. Buy when the indicator line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
Relative StrengthPowerful tool to calculate and display the strength of a security compared to another security.
Some Main purposes are:
- finding new leadership in a market correction
- comparing a market leader with a top competitor
- tracking rotation in the market
.. and so much more!
This tool is highly configurable, you can especially change:
- The reference symbol (SPY, QQQ, BTCUSD, ...)
- The time span to indicate a new High or Low in a certain time-frame
- Factorize your RS-Chart to make it fit to the original chart. (Moves the chart up or down)
- Option to repaint your candles / bars when a new RS High occurs in the given timeframe.
Enjoy and have a great day!
Powerful_Trading
Ultimate RSIsThis RSI script includes everything you could want on an RSI. There are multiple timeframes which will give context to market movement, as well as a highlight feature to make it easier to visualize overbought and oversold stocks.
Tip: Uncheck the 4 plots with no color in them to remove the extra headers on the indicator.
AM Bursa Sector Index OverviewThis indicator summarizes the Bursa Sector index based on Dual EMA (Fast and Slow) including the individual sector's Relative Strength (RS) compared to FBM KLCI major index.
Relative strength is calculated based on the sector index and the reference index, usually the FBM KLCI.
Preferably opened in Daily Time Frame.
The intent of this Indicator is for traders to get a quick performance overview for multiple sectors traded at Bursa Malaysia Exchange that will help them to select which stocks to trade. Trending and strong sectors normally provide opportunities to participate in trending markets.
How to read:
i) The triangle up and triangle down on the left side refer to bullish or bearish Dual EMA Cloud;
ii) +RS with triangle up means positive RS (stronger than FBM KLCI) and the RS is trending up;
iiI) -RS with triangle up means negative RS (weaker than FBM KLCI) and the RS is trending up;
iV) -RS with triangle down means negative/positive RS (doesn't matter) and the RS is trending down.
Enjoy !!!
Relative Strength Ratio Chart + Relative Volume Gradient CandlesThe purpose of the Comparative Relative Strength Ratio indicator is to provide a way of looking at a relative strength ratio as a candle graph instead of only a closing price line, as well as to provide relative volume gradient coloration on the ratio-generated candles, and additionally to plot moving averages of the CRS ratio that can help display shifting trends in relative strength.
This is different from my Relative Volume Gradient Paintbars indicator, as well as my Comparison Chart with Relative Volume Gradient Paintbars indicator, in that the first looks at the charted symbol itself, the second looks at an alternate symbol, and this third indicator looks at a ratio between the charted symbol and the alternate symbol.
The idea behind this indicator is to provide additional means of evaluating relative strength, such as comparing the moving averages of the comparative relative strength ratio graph to the charted stock symbol's own MAs in order to gauge strength, comparing the price action of the ratio to that of the individual stock and its index, and comparing the volume gradient signal between the ratio, the stock, and the index.
The unique volume features allow comparing volume as a percent of the index volume, as well as stock's candle range as a percent of the range of the index. So when the volume as a percentage of the index's overall volume becomes high, this can be made to highlight the candles.
Comparison Chart with Relative Volume Gradient CandlesThis indicator provides a way to use Relative Volume Gradient Paintbars on an alternate/comparison symbol while still looking at your main charted symbol. For instance, this allows you to plot the ES1! or SPY or QQQ above/below your charted symbol, and see its current Relative Volume signal, and compare that to the your currently-charted individual stock symbol, etc., and while keeping the candles from both symbols all lined up perfectly. It also provides 4 different custom MAs which can be applied to the comparison symbol.
The idea here is that you can potentially use my other indicator, Relative Volume Gradient Paintbars, on the primary symbol to evaluate that chart, while using this particular indicator to quickly analyze the same Relative Volume data on a comparison market symbol such as the SPY or QQQ without having to switch charted symbols. You can also quickly compare price action and location relative to familiar moving averages to quickly gauge relative strength of the stock vs. the market symbol.
Screener: Alpha & Beta IndexThis is a Index Screener which can short list the major Sectors contributing to NIFTY movement that day.
This helps in sector based trading, in which we can trade in the stocks which falls under that particular sector.
No need to roam around all the stocks in the whole watchlist.
It is recommended to create sector wise watchlist of all sectors. It will be easier to concentrate in only one sector.
For example in IT sector index there are certain stocks which contribute to the movement of IT sector.
This will be available in NSE (or exchange website).
For detailed description check out the descriptions in my previous 2 Alpha and Beta indicators.
Combine and use this screener with my previous Alpha & Beta indicator.
Screener: Alpha & BetaThis is a Live Screener for my previous Alpha & Beta indicator, which filters stocks lively based on the given values.
Use 5min timeframe for Live Intraday.
The default stocks in the screener is selected based on high beta value from F&O listed stocks. It may include other stocks also.
User can input stocks of your choice either through the menu or through the Pine editor.
The maximum number of stocks inputs is only 40. The indicator includes only 20 stocks by default.
More number of stocks can be added but it makes the screener slower to load.
Open the indicator in a sperate tab or window to avoided the loading lag.
It is recommended to choose only 10 to 20 stocks based on the weightage from each sectors.
Beta values are dynamic. It changes from day to day based on the trend and sector.
Update the sock list weekly or twice a week or monthly.
Use investing.com screener(preferably) or TradingView screener for shortlisting beta stocks.
Remember that majority of indicators fails in a sideways market, also every indicator is not 100% accurate.
Relative Strength 52 WeeksRelative strength plot that compare strength to SPY (changeable to whatever you want)-
Small orange suns marks the 52 week high on the strength line
Color coded EMA 22 line shows the overall trend of the strength
Alpha & BetaHow to use Alpha(α)?
If Alpha is positive the stock outperforms, if the value is negative means the stock underperforms.
α < 0: The investment has earned too little for its risk (or, was too risky for the return)
α = 0: The investment has earned a return adequate for the risk taken
α > 0: The investment has a return in excess of the reward for the assumed risk
How to use Beta(β)?
β = 1: Exactly as volatile as the index
β > 1: More volatile than the index
β < 1 > 0: Less volatile than the index
β = 0: Uncorrelated to the index
β < 0: Negatively correlated to the index
β > 2: Trending stock
Higher the β higher risk/reward
Example: If the beta is 1.1, the share price is like to move by 10% more than the index
Trading Tip
Choose a stock with Alpha greater than 0 and Beta greater than 1.9 for intraday in 5min timeframe for long positions
Remember that such stocks will have high risk and high reward
Shortlist stocks with Beta greater than 1.9 for next day in 5min timeframe
Relative strength DivergenceThe following indicator uses relative comparison of two assets by the formula n/s3, where n is the t asset on the screen while s3 the underlying assets it is being compared to. The usefulness of the indicator is to primarily compare the assets being traded like BTC (most prominent crypto with largest market cap), with some other crypto like TRX(this has a relatively smaller market cap). Since we get a broader market view through relative comparison of the two assets, the most important function is to find the edge through divergences. Just like RSI the divergences rules would be the same and most important trades would be trades in the direction of the trend along accompanies by divergences that are in line with the trend. Simple divergences work for the best trades with default settings. Although BTCUSD is the default asset to compare with it can be switched with any other asset as well, but it is very much preferred that one uses some type of index as the base asset for comparison. Other than that for simple trading the trend MA crossover can also be used as a signal for simple trend following.
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!
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).
Jack Corsellis RS LineRelative Strength line which shows a blue dot for new 52 week Relative Strength highs.
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.