TASC 2022.03 Relative Strength Volatility-Adjusted EMA█ OVERVIEW
TASC's March 2022 edition of Traders' Tips includes the "Relative Strength Moving Averages - Part 3: The Relative Strength Volatility-Adjusted Exponential Moving Average" article authored by Vitali Apirine. This is the code that implements the "RS VolatAdj EMA" from the article.
█ CONCEPTS
In a three-part article series, Vitaly Apirine examines ways to filter price movements and define turning points by applying the Relative Strength concept to exponential moving averages . The resulting indicator is more responsive and is intended to account for the relative strength of volatility .
█ CALCULATIONS
The calculation process uses the following steps:
Select an appropriate volatility index (in our case it is VIX ).
Calculate up day volatility (UV) smoothed by a 10-day EMA.
Calculate down day volatility (DV) smoothed by a 10-day EMA.
Take the absolute value of the difference between UV and DV and divide by the sum of UV and DV. This is the Volatility Strength we need.
Calculate a MLTP constant - the weighting multiplier for an exponential moving average.
Combine Volatility Strength and MLTP to create an exponential moving average on current price data.
Join TradingView!
Relativestrength
Linear Regression Relative Strength[image/x/iZvwDWEY/
Relative Strength indicator comparing the current symbol to SPY (or any other benchmark). It may help to pick the right assets to complement the portfolio build around core ETFs such as SPY.
The general idea is to show if the current symbol outperforms or underperforms the benchmark (SPY by default) when bought some certain time ago. Relative performance is displayed as percent and is calculated for three different time ranges - short (1 mo by default), mid (1 quarter), and long (half a year). To smooth the volatility, the script uses linear regression to estimate the trend and takes the start and the end points of the linear regression line to compute the relative strength.
It is important to remember that the script shows the gain relative to SPY (or other selected benchmark), not the asset's gain. Therefore, it may indicate that the asset is profitable, but it still may lose value if SPY is in downtrend.
Therefore, it is crucial to check other indicators before making a decision. In the example above, standard linear regression for one quarter is used to indicate the direction of the trend.
Relative Strength Volume Adjusted Exponential Moving Avg [CC]The Relative Strength Volume Adjusted Exponential Moving Average was created by Vitali Apirine (Stocks and Commodities Feb 2022 pgs 14-18) and this is very similar of course to the last Relative Strength Exponential Moving Average . It works under the same concept with using overbought and oversold methods to adjust the moving average and with this particular version you will notice that sudden drops or increases won't follow super closely so this can be useful along with the other as a good complementary indicator to use with each other to determine the short and medium term trend and to give good entry and exit points. I have strong buy and sell signals in addition to normal ones so darker colors are strong and lighter colors are normal. 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 Strength Exponential Moving Average [CC]The Relative Strength Exponential Moving Average was created by Vitali Apirine (Stocks and Commodities Jan 2022 pgs 22-25) and this is a handy moving average that combines a typical overbought/oversold mechanic with an overall trend indicator. Even though the typical length is so large it reacts extremely quickly when the stock becomes overbought or oversold. Because of this the indicator by itself doesn't work as well during choppy periods so Vitali recommends using a moving average crossover system during choppy so do one indicator with the default length of 50 and use a different length of 10 so when the shorter length crosses over the longer length then buy and vice versa you would sell. Generally speaking buy when the line turns green and sell when it turns red. I have used strong buy and sell signals in addition to normal signals so strong signals are darker in color and normal signals are lighter in color.
Let me know if there are any other scripts or indicators you would like me to publish!
Currency StrengthThis script measures the strength of the 6 major currencies USD, EUR, GBP, CAD, AUD and JPY.
Simply, it averages the RSI values of a currency vs the 5 other currencies in the basket, and displays each average RSI value in a table with color coding to quickly identify the strongest and weakest currencies over the past 14 bars (or user defined length).
The Dir. value looks at the difference in average RSI value between current and X bars back (user defined), telling you whether the combined RSI value has gone up or down in the last X bars.
Using the average RSI allows us to get a sense of the currency strength vs an equally weighted basket of the other majors, as opposed to using Indexes which are heavily weighted to 1 or 2 currencies.
The table doesn't load super fast as we are making 15 Security requests to get the values for each pair (where possible we reverse the values of the pair to reduce Security requests, e.g. we don't need to request EURUSD and USDEUR, we reverse the value to calculate the USD RSI).
TurtleQuants : Relative StrengthThis is the customer indicator built by "TurtleQuants" based on the relative strength against the broader index. This indicator is built purely based on technicals and price action, does not include any fundamentals of the company / script.
This works the best on Weekly Time, while can also be used on Daily Time. This is not designed for hourly or Intraday trading.
How it works : It calculates the short term and long relative strength as against the broader index along with other technical indication, which can further be customized (Ex: we kept RSI length as 21 weeks default, however this can be changed based on individual preference or set-up)
How to use: This indicator triggers
buy signal when the indicator turns "GREEN" .....
sell signal when the indicator turns "Red"
If the color of the indicator is BLUE, then previous position status continues....meaning, earlier signal was Green and now changed to Blue, then its hold....and if earlier signal was Red and then changed to Blue, then watchlist, triggers a new buy only when it turns Green from BLUE .
The script (TCS), that was show is just for illustration but not recommendation.
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.
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