Industry SRS-ARS StrengthThis script show the Relative strength of the script vs selected Industry.
Simply us the Compare Index drop down list to select the Industry you want to compare your symbol with and it will plot a line chart.
The index of the industries have been created based on the highest to lowest Market Cap of the first 10 companies from that industry.
You also have option to choose Static RS period and Adaptive RS date.
####Please note that some industry index may not show a full length back data and the reason may be some companies from that Index may have been listed recently.
I Do it this way.
Step 1 : Check the custom industry index outperformance to the benchmark
Step 2 : Search the companies from that industry. Screener.in is a useful site for this search.
Step 3: Plot this indicator on TradingView and compare the performance of the stock to is industry Index.
This way you can find the best sector/industry outperforming the benchmarck index and then you can short list the outperforming companies from that industry.
Comparación de fuerza relativa
MARS - Moving Average Relative StrengthThe original idea from this script is from the script " Percentage Relative Strength " by dman103 . The original script compared a symbol to an index by their everyday percentage change. The symbol percentage was subtracted from percentage change of the index, & the results were then smoothed by moving averages.
Instead of daily percentage changes, this script directly calculates relative strength via a moving average. We call this simpler approach as MARS (Moving Average Relative Strength) .
MARS compares a symbol to the index by making use of the price's distance from a moving average. By default, we compare the distance from the 50-day simple moving average of the stock vs that of the index. Both the type & the length of the moving average is customisable.
Background color indicates the index being above or below its moving average.
Blue background: index is above its moving average
Pink background: index is below its moving average
The histogram indicates whether the stock is under-performing or out-performing the index.
Up-bars : stock is out-performing the index i.e. between the stock & the index, the difference between the distance to/from the 50-day moving average is a positive value.
Down-bars : stock is under-performing the index i.e. between the stock & the index, the difference between the distance to/from the 50-day moving average is a negative value.
The color of the histogram indicates the type of out-performance or under-performance. There can be a total of 6 such colors:
Relative out-performance : both index & stock are bearish, but stock is less bearish. The script prints light green up-bars on a pink background.
Gross out-performance : both index & stock are bullish, but stock is more bullish. The script prints green up-bars on a blue background.
Absolute out-performance : index is bearish, but stock is bullish! The script prints blue up-bars on a pink background.
Relative under-performance : both index & stock are bullish, but stock is less bullish. The script prints light red bars on a blue background.
Gross under-performance : both index & stock are bearish, but stock is more bearish. The script prints dark red bars on a pink background.
Absolute under-performance : index is bullish, but stock is bearish! The script prints black down-bars on a blue background.
Additional customisation options:
Paint bars option changes the bar colors to mirror the histogram colors.
Easy colors option just changes the histogram colors to either blue or pink, indicating out-performance or under-performance, respectively. This is when the trader does not wish to demarcate between the above-mentioned 6 conditions.
Minervini Pullback Strategy_Trend-Template QualifierGeneral Description and Unique Features of this Script
Introducing the ultimate trend-following (long-only) strategy that offers a unique feature you won't find anywhere else!
1. Our script/strategy utilizes Mark Minervini's Trend-Template as a qualifier for identifying stocks and other financial securities in confirmed uptrends. Mark Minervini, a 3x US Investment Champion, developed the Trend-Template, which covers eight different and independent characteristics that can be adjusted and optimized in this trend-following strategy to ensure the best results. The strategy will only trigger buy-signals in case the optimized qualifiers are being met.
2. Our strategy is based on supply/demand balance in the market, making it timeless and effective across all timeframes. Whether you're day trading using 1- or 5-min charts or swing-trading using daily charts, this strategy can be applied and works very well.
3. We also incorporate technical indicators such as RSI and MACD to identify low-risk pullback entries in the context of confirmed uptrends. By doing so, the risk profile of this strategy and drawdowns are being reduced to an absolute minimum, giving you peace of mind while trading.
Minervini’s Trend-Template and the ‘Stage-Analysis’ of the Markets
This strategy is a so-called 'long-only' strategy. This means that we only take long positions, short positions are not considered.
The best market environment for such strategies are periods of stable upward trends in the so-called stage 2 - uptrend.
In stable upward trends, we increase our market exposure and risk.
In sideways markets and downward trends or bear markets, we reduce our exposure very quickly or go 100% to cash and wait for the markets to recover and improve. This allows us to avoid major losses and drawdowns.
This simple rule gives us a significant advantage over most undisciplined traders and amateurs!
'The Trend is your Friend'. This is a very old but true quote.
What's behind it???
• 98% of stocks made their biggest gains in a Phase 2 upward trend.
• If a stock is in a stable uptrend, this is evidence that larger institutions are buying the stock sustainably.
• By focusing on stocks that are in a stable uptrend, the chances of profit are significantly increased.
• In a stable uptrend, investors know exactly what to expect from further price developments. This makes it possible to locate low-risk entry points.
The goal is not to buy at the lowest price – the goal is to buy at the right price!
Each stock goes through the same maturity cycle – it starts at stage 1 and ends at stage 4
Stage 1 – Neglect Phase – Consolidation
Stage 2 – Progressive Phase – Accumulation
Stage 3 – Topping Phase – Distribution
Stage 4 – Downtrend – Capitulation
This strategy focuses on identifying stocks in confirmed stage 2 uptrends. This in itself gives us an advantage over long-term investors and less professional traders.
By focusing on stocks in a stage 2 uptrend, we avoid losses in downtrends (stage 4) or less profitable consolidation phases (stages 1 and 3). We are fully invested and put our money to work for us, and we are fully invested when stocks are in their stage 2 uptrends.
But how can we use technical chart analysis to find stocks that are in a stable stage 2 uptrend?
Mark Minervini has developed the so-called 'trend template' for this purpose. This is an essential part of our JS-TechTrading pullback strategy. For our watchlists, only those individual values that meet the tough requirements of Minervini's trend template are eligible.
The Trend Template
• 200d MA increasing over a period of at least 1 month, better 4-5 months or longer
• 150d MA above 200d MA
• 50d MA above 150d MA and 200d MA
• Course above 50d MA, 150d MA and 200d MA
• Ideally, the 50d MA is increasing over at least 1 month
• Price at least 25% above the 52w low
• Price within 25% of 52w high
• High relative strength according to IBD.
We have developed an algorythm (for TradingView) that uses Minervini’s trend template as a qualifier. This means that the strategy only generates trading signals in case the selected elements of the trend template are being met. The user is fully flexible to adjust the requirements of this Trend-Template qualifier:
This strategy is normally applied to the daily chart ideal for selecting individual stocks for trend-following strategies. Nevertheless, Minervini’s principles are timeless and this alogrithmic strategy with the Trend-Template qualifier can also be applied to any other timframe.
The qualifier #9 (RS-Ratings) can be modified and optimized in the strategy’s settings to fit your individual needs.
In general, it should be noted that ideally all 8/8 trend template criteria are met. Stocks or other securities that meet only some of these 8 criteria can also be very promising candidates for this strategy, provided that backtesting yields good results.
The Pullback Strategy
For the JS-TechTrading pullback strategy, only stocks and other financial instruments that meet the selected criteria of Mark Minervini's trend template are considered. If not, the strategy will not generate any signals.
Further prerequisites for generating a buy signal is that the individual value is in a short-term oversold state (RSI).
When the selling pressure is over and the continuation of the uptrend can be confirmed by the MACD after reaching a price low, a buy signal is issued by the pullback strategy.
Stop-loss limits and profit targets can be set variably.
Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a technical indicator developed by Welles Wilder in 1978. The RSI is used to perform a market value analysis and identify the strength of a trend as well as overbought and oversold conditions. The indicator is calculated on a scale from 0 to 100 and shows how much an asset has risen or fallen relative to its own price in recent periods.
The RSI is calculated as the ratio of average profits to average losses over a certain period of time. A high value of the RSI indicates an overbought situation, while a low value indicates an oversold situation. Typically, a value > 70 is considered an overbought threshold and a value < 30 is considered an oversold threshold. A value above 70 signals that a single value may be overvalued and a decrease in price is likely , while a value below 30 signals that a single value may be undervalued and an increase in price is likely.
For example, let's say you're watching a stock XYZ. After a prolonged falling movement, the RSI value of this stock has fallen to 26. This means that the stock is oversold and that it is time for a potential recovery. Therefore, a trader might decide to buy this stock in the hope that it will rise again soon.
Moving Average Convergence Divergence (MACD)
The MACD (Moving Average Convergence Divergence) is a technical indicator used in both short-term and long-term trading strategies. The indicator was developed by Gerald Appel and is one of the most well-known indicators for the stock market.
The MACD consists of two lines calculated by the difference between two moving averages. The first line is a fast moving average that targets a short period of time. The second line is a slow moving average that targets a longer period of time. In addition, a trigger line is calculated, which consists of another moving average of the MACD line.
The MACD line is the difference between the fast and slow moving average.
The greater the difference between the two lines, the more likely a subsequent price increase. The lower the difference, the more likely a subsequent price drop is.
If the MACD line crosses upwards over the trigger line, this is a buy signal that signals a potential price increase. If the MACD line crosses down below the trigger line, this is a sell signal that signals a potential price weakening.
This strategy is applicable to all timeframes and the relevant parameters for the underlying indicators (RSI and MACD) can be adjusted and optimized as needed.
Backtesting
Backtesting give outstanding results on all timeframes and drawdowns can be reduced to a minimum level. Swing-Traders (daily charts) will see that the strategy does not give any buy signals during market corrections and bear markets.
Settings for backtesting are:
- Period from Jan 2000 until now
- Starting capital 100k USD
- Position size = 25% of equity
- 0.01% commission = USD 2.50.- per Trade
Other comments
• This strategy has been designed to identify the most promising, highest probability entries and trades for each stock or other financial security.
• The trend-template qualifier is highly selective and filters out the most promising swing-trading entries. As a result, you will normally only find a single-digit number of trades for each stock or other financial security per year in case you apply this strategy for the daily charts. Shorter timeframes will result in a higher number of trades / year.
• As a result, traders need to apply this strategy for a full watchlist rather than just one financial security.
Relative Performance Comparison among different sectorsThis script shows how money is moving among different sectors using relative-strength of the corresponding sector-specific largest ETFs against MSCI World. Trend and current value of Relative-strength can be used to determine the sector in which you should make your investment at this point, considering the movement in markets.
Currency Strength [LuxAlgo]The Currency Strength indicator displays the historical relative strength of 5 user selected currencies over a user selected period of time. Users can also display relative strength of currencies as a scatter plot, further informing on the evolution of currency strength.
🔶 SETTINGS
Display: Determines the type of data displayed by the indicator. By default, the trailing relative strength of currencies is displayed, with the other option displaying the scatter plot.
Timeframe: Timeframe period used to calculate currency relative strength.
🔹 Meter
Show Strength Meter: Displays the currency strength meter on the indicator panel.
Strength Meter Resolution: Resolution of the currency strength meter, higher resolutions allow to observe smaller difference in strength.
Location: Location of the currency strength meter on the indicator pane.
Size: Size of the currency strength meter.
🔹 Relative Strength Scatter Graph
Scatter Graph Resolution: Horizontal and vertical width of the scatter plot (in bars). Higher values allow a more precise position on the X axis.
🔶 USAGE
Measuring the relative strength of a currency allows users to assess the relative performance of a currency against a basket of other currencies.
The term "strength" can convey various interpretations depending on the indicator. Here "strength" is interpreted as an indicator of performance, with stronger currencies having greater performances over the selected period (positive changes of higher magnitude).
The Currency Strength indicator allows users to analyze the relative strength of currencies over a user selected period - the returned results will reset periodically and will accumulate afterward.
The above chart shows the hourly relative strength of various currencies on the 1min TF.
🔹 Scatter Graph
The scatter graph displays the relative strength of a currency over its value during the previous period. This not only allows users to see if a currency is strong... but also if it's getting stronger compared to the previous period.
In order to quickly interpret results, the graph is divided into four areas. A currency (displayed as a point) being in a specific area returns the following information:
Strong(Green): Currency has a positive relative strength (bullish) and is greater than its value over the previous period.
Improving (Yellow): Currency has a negative relative strength (bearish) and is greater than its value over the previous period.
Weakening (Aqua): Currency has a positive relative strength (bullish) and is lower than its value over the previous period.
Weak (Red): Currency has a negative relative strength (bearish) and is lower than its value over the previous period.
🔶 DETAILS
There is a wide variety of methods for the calculation of a currency's relative strength. The primary focus of the indicator is on the meter as well as the relative strength scatter graph. The currency strength calculation can be considered more basic.
Given two currencies, B (base) and Q (quote), the proposed indicator calculation process is as follows:
Exchange rate BQ(t) over time t is obtained, a rising value of BQ(t) means that a unit of B is now worth a higher amount of Q , highlighting strength of B over Q on that precise variation.
The individual relative strength over time IRS(t) is obtained as the percentage relatively close to the open difference of BQ(t) , that is:
IRS(t) = / open(t) * 100
Normalizing the close to open difference allows for the various currencies' relative strengths to approximately share the same scale.
The above operation is performed n times over a space of n currencies O( n ) . The obtained individual relative strengths for one specific currency are then added together, forming the final composite relative strength ( CRS ) of that currency:
CRS (t) = IRS (t) + IRS (t) + ... + IRS (t)
The cumulative sum of CRS(t) over the user selected period is then obtained.
Stock Relative Strength Power IndexAs always, this is not financial advice and use at your own risk. Trading is risky and can cost you significant sums of money if you are not careful. Make sure you always have a proper entry and exit plan that includes defining your risk before you enter a trade.
This idea recently came out of some discussions I stumbled across in a trading group I am a part of regarding Relative Strength and Relative Weakness (shortened to RS and RW from here on out). The whole mechanism behind this trading system is to filter out underperforming securities relative to the current market direction to be in only the strongest or weakest stocks when the market is currently experiencing a bullish or bearish cycle. The idea behind this is there is no point in parking your money into a stock that is treading water or even going down if the market is making strong moves upwards. At that point, you are at worst losing money, and at best trading equal to the index/ETF, in which case the argument is why are you not just trading the index/ETF instead? RS or RW will filter out these sector laggards and allow you to position yourself into strong (or the strongest) stocks at any given time to help improve portfolio performance. Further, not only does it protect your position should the market shift against you briefly, it also often sees exceptional performance in the same cycle. For example, if $SPY makes a 5% move over the course of a month, a stock with RS/RW may make a 10% move, or more, allowing you to see increased profit potential.
RS/RW is based on the idea of performance, that is the raw percent change of a security over a given time period relative to a benchmark. This benchmark is often the S&P500 (ES/SPX/SPY and their derivatives). I have to stress that this is not beta, which measures the volatility of a stock over a given period (i.e. if $SPY moves $1, $NVDA will often move $1.74). This is a measurement of the market (i.e. $SPY) has moved 1% over the course of a day, $NVDA has moved 8% over the course of the day. This is very often used as a signal of institutional interest as apart from some very unique moments, retail traders cannot and will not provide enough market pressure to move a market outside of a stock's normal trading range, nor will they outperform the sector or market as a whole consistently over time without some big money to make them move. The problem with running strict performance analysis (i.e. % change from period T ago to period T + n at present) is that while it gives us a baseline of how much the stock has moved, it doesn't overall mean much. For instance, if a $100 stock has moved 5% today, but has been experiencing a period of increased volatility and it's Average True Range (ATR) (the amount a stock will move over X number of periods, on average) is $7, performance seems impressive but is actually generally fairly weak to what the stock has been doing recently. Conversely, if we take a second stock, this time worth $20, and it too has moved 5% in one day but has an ATR of only $0.25, that stock has made an exceptional move and we want to be part of that.
Here, I have created an indicator called the Stock Relative Strength Power Index. This takes the stock's rate of change (ROC) (the % move it has made over X number of periods), the stock's normalized ATR (the ATR represented as a percentage instead of a raw value), and compares these to one another to get the "Power Rating": a representation of the true strength of a stock over X number of periods. The indicator does two things. First, the raw ROC is divided by the stock's normalized ATR to assess whether the stock is moving outside of its normal range of variation or not. Second, since we are interested in trading only stocks with exceptional RS/RW to the market, I have also applied this same calculation to the S&P500 ($SPY) and the various SPDR sector indexes. These comparisons allow for a rapid and accurate assessment of the true strength of a stock at any given time on any given time frame. To cycle back above to our examples, the $100 stock has a Power Rating of only 0.71 (i.e. it is trading less than its current average), while our $20 stock has a Power Rating of 5. If we then compare these to both the market as a whole and the sector that the stock is a part of, we get a much clearer indication of the true buying or selling pressure imposed on the stock at any given time.
Use:
The indicator has 3 lines. The blue line is the security of interest, the red line is the market baseline (i.e. the sector ETF $SPY), and the white line is the sector index. I have given an example above on the semiconductor/tech stock $NVDA on a 30min timeframe. You can see that since the start of 2023, $NVDA has generally been strong to the market and its own sector since the blue line is greater than both the red and white lines over many days. This would have provided some nice day trading opportunities, or even some nice short term swing trades. The values themselves are generally meaningless outside of either the 1 or -1 value lines. All that matters is that the current ticker is surpassing both the market and the sector while being > 1.0 for a long trade or less than -1.0 for a short trade. However, I must stress this indicator gives no trade signals on its own, it is purely a confirmation indicator. An example of a trade would be if you had a trade signal given by either an indicator or by price action suggesting to buy some $NVDA for a trade to the upside, the Power Rating indicator would confirm this by showing if $NVDA was actually showing true strength by being both greater than 1 (the cutoff for it surpassing its ATR) and being above both the red and white lines. Further, you can see $NVDA has been stronger than the market when using the comparison function as well, but the has fluxed in and out of strength intraday when using the actual indicator vs. the static performance ratio chart (plotted as line graphs on the chart).
I have made it possible to change the colour of the plots and the line levels. The adjustment of the line levels gives the trader the flexibility to change their target breakout level (i.e. only trading stocks that have a Power Rating > 2, for example, meaning they are trading at least 2X their normal trading range). The third security comparison is flexible and can be used to compare to the sector ETF (initial intention) or it can be used to compare to other tickers within the same sector, for example. The trader should select the appropriate ETF for the given security of interest to avoid false confirmation if they want to use an ETF as their third input. The proper sector should be readily available on most online websites and accessible in a matter of seconds meaning that the delay is minimal, at worst. If a trader wishes to add additional functionality, such as a crypto trader using BTCUSD as the benchmark instead of $SPY, I encourage them to copy and paste this script and modify as needed since I have made this open source.
This indicator works on all timeframes. The lookback period can be changed, so a day trader who may use a 5min chart (and use a period of 12 to get the hourly Power Rating) will find this equally useful as someone who may be a core trader who wants to look at the performance over the course of years and may use a 60 period on a monthly chart.
Happy trading and I hope this helps!
Relative Performance Dashboard v. 2This is a smaller and cleaner version of my previous Relative Performance table. It looks at the rate of change over 1M, 3M, 6M, 1YR & YTD and displays those for the current chart's ticker vs. an index/ticker of your choosing (SPX is default). I also have some fields for the ADR of the displayed chart, how far away the displayed chart is from 52-week highs, and a single number that compares the average relative strength of the displayed chart vs. the index. The way this average calculates is customizable by the user.
I like using this table next to an Earnings/Sales/Volume table that already exists by another user in the same pane and I designed this one so it can look just like that one to give a great view of the both fundamental and technical strength of your ticker in the same pane.
Keeping fundamental data independent from performance data allows you to still be able to see performance on things without fundamental data (i.e. ETFs, Indices, Crypto, etc.) as any script that uses fundamental data will not display when a chart that does not have fundamental data is displayed.
(CD|RS Signal) Caruso Divergence Relative Strength SignalCD|RS Signal allows for plotting horizontal bars to isolate periods where a security is forming a positive divergence from its benchmark, therefore, producing positive Relative strength when accounting for the security's volatility.
Investors can set how many 'pivots' or lows back to use when making an analysis. CD|RS Signal has an algorithm to identify pats market lows and automatically line them up with a stock's low around the same period of time. This allows for divergence analysis across many past lows and helps to isolate positive price divergences that are not so clear in choppy sideways trading action. CD|RS Signal helps an investor to identify when a security does not make a lower low vs a benchmark that has made a lower low over a similar period.
To help visualize the meaning behind the indicator, CD|RS Signal can be plotted in a separate pane, ideally over the benchmark itself. Traditionally the S&P500 is used for US stock analysis. By overlaying CD|RS Signal over the S&P 500, investors can more easily view which S&P 500 lows the stock is currently showing a positive divergence with.
This indicator allows you to select both your benchmark for comparing against as investors may prefer a commodity crypto currency or another stock. As well, users cans elect as far back to make the analysis by selecting the pivot lookback (how many prior ‘pivots’ or ‘market lows’ back to compare against).
In addition, to perform the historical study, investors can turn on historical HLs in the settings enabling all past CD|RS signals to show. This helps an investor to visualize how this has functioned on a security in the past.
(CA|RS Signal) Caruso Adaptive Relative Strength Signal CA|RS Signal is a new approach to relative strength analysis that incorporates a security’s volatility and correlation to a benchmark when performing RS analysis. Traditional RS methods compare the performance between two securities to identify which is outperforming on a percentage basis. although this is effective in many situations, some stocks are inherently less volatile and will not outperform a benchmark on a percentage basis. Accounting for a security's volatility and correlation to its benchmark through BETA allows for a more effective method to conduct RS analysis.
In order to build a tool that provides a robust signal, CA|RS Signal is a composite of RS from different time frames. The strongest trends have a security displaying RS across all timeframes measured. CA|RS Signal displays whether RS is identified along with how many internal components are currently identifying RS. This is helpful as a trend may progress from 3 components identifying RS down to only one as it wekas - providing early warning to an investor that RS is present but deteriorating.
CA|RS Signal is also adaptable to any time frame.
CA|RS Signal allows an investor to select which security will act as a benchmark. Traditionally, the S&P 500 is the benchmark for US stocks. International investors can select their local index of choice. Not equity investors can select a commodity, crypto token, or FX basket to get a different RS analysis.
(CD|RS) Caruso Divergence Relative StrengthCaruso Divergence Relative Strength (CD|RS) helps an investor to identify when a security does not make a lower low vs a benchmark. The standard application is to compare a stock to the S&P 500 (SPX). If the SPX makes a lower low and the stock does not, it displays significant Relative Strength.
This indicator allows you to select both your benchmark for comparing against as well as how far back to make the analysis by selecting the pivot lookback (how many prior ‘pivots’ or ‘market lows’ back to compare against).
Divergences can appear when markets are weak, and they make lower lows, but they can also appear in uptrends as stocks and indexes make higher highs. CD|RS also identifies when RS takes place “On Strength.” If the security and its benchmark both decline but the security can make new highs above its prior peak before the benchmark, it is once again displaying relative strength. Therefore CD|RS is helpful in finding Divergence Relative Strength in both up and down trends.
CD|RS works on any timeframe.
CD|RS has an accompanying indicator called CD|RS Signal which helps display the divergence in a different format and can be placed in a separate pane if the user wishes to keep the price chart clean.
(CA|RS) Caruso Adaptive Relative StrengthCaruso Adaptive Relative Strength helps an investor identify when a stock is performing better than an index on a relative basis. Going beyond traditional Relative Strength(RS) methods, CARS uses a stock's Beta to determine when Relative Strength is present when adjusting for the individual stock's volatility and correlation to its benchmark. Therefore, it allows investors to not only visualize if a stock is outperforming an index but rather if it is outperforming when considering the stock's Beta. This allows Relative Strength to be more easily viewed in lower volatility equities as well as ETFs, Commodities, and alternative assets. To be as effective as possible, I have built CARS to be an RS composite, and it factors in RS from different time periods in making its calculation.
To make the application as simple as possible, I designed CARS to change the background of the chart to blue when Relative Strength is identified. You also have the option to display a box around the data or plot symbols along the bottom of the chart to best suit your visual need. CARS access comes with CARS Signal access which is a separate indicator that plots below the price chart. It provides greater insight into the robustness of the CARS signal by displaying how many core internal components of CARS are displaying RS.
Importantly, you can also change which index or symbol you would like to use for comparison purposes. I have the default set to the S&P 500, but you can use any index, ETF, or security for comparison.
CARS is also adaptable to any time frame.
The greatest benefit in identifying Relative Strength is to discover which stocks are outperforming an index, therefore are undergoing accumulation. It is important to then time your entry into the stock when the price confirms. If an investor is seeking absolute price gains, then this last point of timing an entry is critical because a stock can outperform an index yet still fall - albeit less than the index.
Ratio_between_two_symbolsThis script plots the ratio of two symbols to show the relative strength between in order to determine which is the stronger security
Relative Strength against IndexThis is a very simple script to compare the performance of a single stock against its index, by adding / subtracting points for particular price action on up /down - days in the index.
For instance: If the index is down <-1ATR and the stock is not, it's +1 point. If the index is up >1ATR and the stock is up less than half, it's -1 point.
Basic idea (vs the commonly used "relative strength comparison") is that regular relative strength action over a time tells more about accumulaiton than pure price outperformance.
Formula can probably be made better - I'm open to suggestions...
[TTI] Combined Absolute Relative Strength - ARS toolHISTORY AND CREDITS–––––––––––––––––––––––––––––––––––––––––––––––––––––––
I got inspired to build this based on some public lectures I have seen of Matt Caruso. Matt says he has taken 10 years to build similar tool. The idea of a 'better' Relative Strength hit home and I cracked open the textbooks to see which technique would serve best. I think I have made a very close (my estimate about 90%) script to the original. Examples of side by side in comments.
WHAT IT DOES––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
💡A significant advancement in relative strength analysis is Combined Adaptive Relative Strength (ARS tool).
The ARS tool makes it quick and easy to determine whether an asset exhibits Relative Strength and is therefore subject to institutional accumulation.
ARS is not restricted to equities and may be used to find RS on any traded security like crypto, forex, bonds or ETFs. By design, ARS adjusts to a security's volatility to discover RS in a slower-moving, dividend-paying investment just as easily as in a one with strong velocity. Due to this feature, investors are able to use RS analysis on any security type that fits their objectives and risk tolerance.
When the indicator calculates a favourable, strong relative strength in the ticker it paints the background of the chart to the chosen color.
🎁 Unlike the original indicator, I have left a few customisable settings for those who wish to toggle the sensitivity:
✅. You can choose which index you compare Relative Strength against (perfect for anyone trading international)
✅. You can choose how manyDays Lookback the ticker uses to make calculations
✅. You can chooses what Timeperiod in number of bars the ticker uses to calculate Relative Strength
✅. I have made all calculations adaptable for larger and smaller timeframes (so wether you are daytrader or investor this will adapt to the way you have customised your chart).
HOW TO USE IT–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
The tool highlights the periods of time when the ticker has the highest probability of attracting institutional investors and hence result in price appreciation. The blue color appears in stages of the indicator where significant upward moves are probable.
You can use the indicator as part of the longer term trend analysis of your research.
IT-Dual Relative StrengthOne can use this indicator to compare two security i.e. (Nifty and stock with its own sector) how it is performing in compare with preferred index ( Nifty 50 by default).
> 0 outperforming
< 0 underperforming
Works best for Daily TF, but can be applied to Weekly and monthly charts .
Can be use on smaller time frame as well, as per the number of hour you want to calculate.
Apply it to Nifty 50 , industry index, sector index or other security in similar sector
I have Added the Box table as well which shows the performance agents Nifty and selected sector.
SCREENER:INDEX
TradingView enables traders and investors to make smarter and better investment decisions. TradingView offers to scan 20 or 40 stock or index. Scanner can be shown in dash board as shown in
above image. This dashboard has following figure
1.Column No.1 show sectoral and thematic index.
2. The price is slipped due to aggressive order punched by market participants. There is six types of price slippage. Three are bullish and three are bearish . This price slippage indicates market fear and greed. Green slippage indicates that bullish rally can start while Red slippage indicates that Bearish rally can start. Area of slippage will act as a support and resistance for future price moment. Where column No. 2,3 and 4 shows H.G., W.G. and T.V. shows price slippage.
3.Column No.6 show resistance strength
4.Column No.7 show Volume strength with respect to ( SMA1000X2)
5.Column No.8 show volatility while Column No. 9 shows liquidity
with previous 1000 bar.
6.Column No.10 show relative strength comparison with respect to broader index.
Diver RSIDiver RSI background and line
Diver RSI background and line
Diver RSI background and line
Diver RSI background and line
Mansfield Relative Strength (Original Version) by stageanalysisThe Mansfield Relative Strength ( Mansfield RS ) is one of the core components of the Stan Weinstein's Stage Analysis method as discussed in his classic book Stan Weinstein's Secrets for Profiting in Bull and Bear Markets .
The Mansfield RS measures the relative performance of the stock compared to an index such as the S&P 500, or to another stock etc.
However, this should not to be confused with the popular RSI (Relative Strength Index developed J. Welles Wilder), which is a momentum oscillator that measures the speed and change of price movements on a single stock.
The Mansfield RS indicator consists of the Relative Strength comparison line versus the S&P 500 (default universal setting, but can be edited), and the "Zero Line" – which is the 52 week MA of the Relative Strength line, that's been flattened to create the oscillator style.
How to use the Indicator:
Outperforming – Above the Zero Line
When the Relative Strength line crosses above the Zero Line (it's flattened 52 week RS MA), it is outperforming the index or stock that it's comparing against, and so it is showing stronger relative strength.
Underperforming – Below the Zero Line
When the Relative Strength line crosses below the Zero Line (it's flattened 52 week RS MA), it is underperforming the index or stock that it's comparing against, and so it is showing weaker relative strength.
Settings:
When you first add the indicator is has a coloured background, with a green tint for a postive RS score, and a red tint for a negative RS score. However, this can be turned off, or edited in the indicator settings, in the Style tab. So you can change the colors or remove it and just have the RS line and zero line showing. Both of which can also be edited in the settings.
Change the symbol that it compares against. The default is the S&P 500. But for crypto you might want to use Bitcoin for example. Or you might want to compare against competing stocks in the same peer group, or against the industry group or sector. The choice is yours. But the S&P 500 is a universal measure for the Mansfield RS. So I would recommend leaving it on that unless you have a particular reason to change it as mentioned.
MA Length is also an editable setting. This creates the Zero Line. So it will affect the values of the Mansfield RS if you change it. 52 is the default setting, and is set as such for the weekly chart. So I'd recommend not editing it on the weekly chart, but for other timeframes, different settings can be used.
Relative Strength MomentumThe RSI is a traders friend - it can provide insight that other indicators simply cannot. The RSI achilles heel is that it can often fail to highlight divergence. Constance Brown attempted to resolve this problem with the 'Composite index' - a powerful tool. However.. for me, looking at two indicators can get a bit much - especially if viewing multiple time-frames. I want one tool which provides the RSI, it's ranging/reversal behaviour (as documented by Andrew Cardwell) and a better grasp of momentum swings (via divergence and reversal signals). So this is my best effort, and I hope it can prove useful to some of you. At first the differences may be hard to spot - but they are there!
My default settings are optimised - as with the 'normal' RSI you can expect a bullish trend to result in few (if any) moves below 30. In a bearish trend, you can expect few (if any) incursions above 70. Cardwell's observations apply. I recommend using this with a 50 period EMA to provide some additional context.
[GTH] Relative Strength, SectorsDisplays the Relative Strength (RS) of a symbol in relation to some common sector ETFs, SPX and NDX (select from drop-down list). This is done by dividing the symbol's price by the chosen sector ETF's price.
You can also select a symbol of your choice to compare against.
Interpretation:
RS line ascending: symbol performs stronger than the sector ETF.
RS line decending: symbol performs weaker than the sector ETF.
In case of error reports: please be specfic. Thanks.
Relative Strength
Compare the percentage change of the current symbol with the benchmark in last 5 periods.
By default the benchmark is SPY, you can change it from Indicator Settings.
Market First - Relative Strength/Weakness (the ZenBot strategy)This market-first trading strategy gives BUY, SHORT, and CLOSE signals based on volume, trend, and relative strength or weakness to the market (SPY by default, can be customized). This indicator is useful for signaling day-trade entries and exits for tickers that are strong (or weak) against the market.
Stocks that are showing relative strength (or weakness) to the market, are trending, and have decent movement generate a buy (or short) signal. When the trend runs out, a CLOSE signal is fired.
Potential profit (based on ATR) and actual profit is calculated, predicting the type of move expected
Unique 'stay in trade' logic helps prevent unnecessary CLOSE signals if a trend is likely to continue
A colored plot indicates the strength of the current trend and turns orange/red when the strength is weakened.
Crypto traders can uncheck 'Trade during market hours' for 24-hour trading, and should change the comparison ticker from SPY to BTCUSD or something similar for their market.
Enjoy!
KEY CONCEPTS
The three- and five-minute timeframes are used to establish and verify trend ( ADX /DI with custom logic)
Entries and exits are based on Parabolic SAR and confirmed on multiple timeframes, trend, and relative volume
Relative strength /weakness to the market compares ticker to SPY
Chop is avoided at all costs. I've experimented with choppiness indicator below 38, but found that the ADX DI+/- readings work even better.
Trend is established using ADX DI+/- readings over 20, confirmed by EMA 5/13 crossover and EMA5 slope
Signals will fire only if the average volume for the current 5-min bar is above normal
Only tickers with a five-bar / 13 period ATR of 1% the ticker's price generate signal.
Only longs above daily-anchored VWAP , shorts below daily-anchored VWAP
Signals fire on bar close to prevent repainting / look-ahead bias
Indicator labels and alerts generated
SIGNALS
BUY: up-trending tickers showing relative strength are bought on the three-minute PSAR
SELL: when the close price falls below the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
SHORT: down-trending tickers with relative weakness are shorted on the three-minute PSAR
COVER: when the close price moves above the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
ALERTS
Alerts are generated on BUY, SELL, SHORT, and COVER signals, as well as optional LOST RELATIVE STRENGTH and LOST RELATIVE WEAKNESS
INPUTS
Use relative strength /weakness comparison with the market : trigger trades based on the ticker's strength or weakness to the selected comparison ticker (usually SPY for equities or BTCUSD for crypto)
[* ]Comparison Ticker for relative strength /weakness : Ticker to compare against for relative strength /weakness
Trade during market hours only : Take buy/sells during specified hours. Disable this for crypto trading.
[* ]Market hours (market time) : Customize market hours - defaults to 9:30 to 16:00 EST
[* ]"Only trade very strong trends" : take trades only if an established trend is very strong ( ADX over 40 ) (DEFAULT = ON)
"Limit trade direction to VWAP" : Long trades only above VWAP , shorts below (DEFAULT = ON)
"Limit trade direction to Market direction" : Long trades only if SPY (or selected comparison ticker) is up, shorts if the market is down. (DEFAULT= ON)
"Limit trades based on a ticker's green/red status for the day" : Long trades if the ticker is green for the day, shorts if red. (DEFAULT = ON)
Market First Signals - Relative Strength/WeaknessThis market-first trading strategy gives BUY, SHORT, and CLOSE signals based on volume, trend, and relative strength or weakness to the market (SPY by default, can be customized). This indicator is useful for signaling day-trade entries and exits for tickers that are strong (or weak) against the market.
Stocks that are showing relative strength (or weakness) to the market, are trending, and have decent movement generate a buy (or short) signal. When the trend runs out, a CLOSE signal is fired.
Potential profit (based on ATR) and actual profit is calculated, predicting the type of move expected
Unique 'stay in trade' logic helps prevent unnecessary CLOSE signals if a trend is likely to continue
A colored plot indicates the strength of the current trend and turns orange/red when the strength is weakened.
Crypto traders can uncheck 'Trade during market hours' for 24-hour trading, and should change the comparison ticker from SPY to BTCUSD or something similar for their market.
Enjoy!
KEY CONCEPTS
The three- and five-minute timeframes are used to establish and verify trend (ADX/DI with custom logic)
Entries and exits are based on Parabolic SAR and confirmed on multiple timeframes, trend, and relative volume
Relative strength /weakness to the market compares ticker to SPY
Chop is avoided at all costs. I've experimented with choppiness indicator below 38, but found that the ADX DI+/- readings work even better.
Trend is established using ADX DI+/- readings over 20, confirmed by EMA 5/13 crossover and EMA5 slope
Signals will fire only if the average volume for the current 5-min bar is above normal
Only tickers with a five-bar / 13 period ATR of 1% the ticker's price generate signal.
Only longs above daily-anchored VWAP, shorts below daily-anchored VWAP
Signals fire on bar close to prevent repainting / look-ahead bias
Indicator labels and alerts generated
SIGNALS
BUY: up-trending tickers showing relative strength are bought on the three-minute PSAR
SELL: when the close price falls below the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
SHORT: down-trending tickers with relative weakness are shorted on the three-minute PSAR
COVER: when the close price moves above the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
ALERTS
Alerts are generated on BUY, SELL, SHORT, and COVER signals, as well as optional LOST RELATIVE STRENGTH and LOST RELATIVE WEAKNESS
INPUTS
Use relative strength/weakness comparison with the market : trigger trades based on the ticker's strength or weakness to the selected comparison ticker (usually SPY for equities or BTCUSD for crypto)
Comparison Ticker for relative strength/weakness : Ticker to compare against for relative strength/weakness
Trade during market hours only : Take buy/sells during specified hours. Disable this for crypto trading.
Market hours (market time) : Customize market hours - defaults to 9:30 to 16:00 EST
"Only trade very strong trends" : take trades only if an established trend is very strong (ADX over 40) (DEFAULT = OFF)
"Limit trade direction to VWAP" : Long trades only above VWAP, shorts below (DEFAULT = ON)
"Limit trade direction to Market direction" : Long trades only if SPY (or selected comparison ticker) is up, shorts if the market is down. (DEFAULT= OFF)
"Limit trades based on a ticker's green/red status for the day" : Long trades if the ticker is green for the day, shorts if red. (DEFAULT = OFF)