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.
Porównanie względnych sił
Relative Strength ComparisonThis indicator compares the difference in percentage change between two symbols
over a user-specified number of bars.
Default settings will show the difference between the current symbol and the
S&P 500 ETF (SPY) over 10 bars. It can be used to determine if the stock is
showing relative strength or weakness compared to the overall market.
Altseason FinderTo know when to buy altcoins instead of bitcoin.
It is based on BTCUSD and BTC Dominance RSIs.
MACD Long StratFirst script I've written, but the concept is pretty simple. This uses the MACD with settings fast_SMA = 6 and slow SMA=16 and uses the distance between the 2 (histogram) to look for potential trend reversals to flag potential entries for Long trades. It waits for the confirmation looking backward 2 x timeframes (to reduce false calls slightly). You can adjust it to open / close quicker (1 timeframe instread of 2) but backtesting shows 2 timeframe delay is best to avoid false signals.
The script suggests Long entry points based on this criteria and uses the converse (reducing histogram / SMA difference delayed by 2 timeframes) to suggest exit or trade close points for downward reversal. It was originally written looking at 1m scalps but backtesting shows this is even more effective on higher timeframes (1D).
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.
Multiple RSI LengthsThis script will allow users to view Multiple RSI timeframes in one indicator (up to 4). This can be useful for viewing RSI Convergences/Divergences and extremely long timeframes like 250 days can provide context to market strength over long positions.
Performance ComparisonThis script takes two symbols as input and shows the year-to-date (YTD), quarter-to-date (QTD), or month-to-date (MTD) performance in percent.
MS CRB/SPYThis indicator tracks the GSCI Commodity Index over the course of the S&P 500. This is used for the fundamental evaluation of ratios of asset classes to each other. The thesis is based on Ray Dalio's quadrant theory: in periods without inflation and with good growth, stock prices rise and commodity prices fall. Conversely, in periods of good growth in an inflationary environment, commodities rise and the rise in equities slows. In particular, there is a change of favorites towards companies that produce cash (i.e. away from growth fantasies). This indicator shows the change in valuations between asset classes and thus allows conclusions to be drawn. This still goes far beyond what has been written, I recommend reading Ray Dalio's works on this.
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 Comparison_FBMSCAPShows the strength of current symbol relative to strength of another symbol, defaulted to Bursa Malaysia broad market index: FBMSCAP. Best viewed in weekly chart.
Triple Supertrend Entry SignalsThis indicator combines 3 supertrend indicators (a fast, medium and slow) with stochastic RSI and 200 EMA. It only gives short signals if price is under the 200 EMA and long signals if price is over the 200 EMA. Secondly it will only show you a short entry if the stochastic RSI is in the overbought territory and a long signal if the stochastic RSI is in the oversold territory. Finally, 2 of the supertrend lines must be over the candles for a sell and two of the supertrend lines under the candles for a buy. By default the script only displays the slow supertrend line which can be used as a guide for stop loss but the medium and fast lines can be revealed via the settings. Typically you can target 1.5 x risk for TP if using the slow supertrend line as a stop loss. Use the alerts to ensure you don't miss a potential entry.
Bollinger DCA v1Simple "benchmark" strategy for ETFs, Stocks and Crypto! Super-easy to implement for beginners, a BTD (buy-the-dip) strategy means that you buy a fixed amount of an ETF / Stock / Crypto every time it falls. For instance, to BTD the S&P 500 ( SPY ), you could purchase $500 USD each time the price falls. Assuming the macro-economic conditions of the underlying country remain favourable, BTD strategies will result in capital gains over a period of many years, e.g. 10 years.
Recommended Chart Settings:
Asset Class: ETF / Stocks / Crypto
Time Frame: H1 (Hourly) / D1 (Daily) / W1 (Weekly) / M1 (Monthly)
Necessary ETF Macro Conditions:
1. Country must have healthy demographics, good ratio of young > old
2. Country population must be increasing
3. Country must be experiencing price-inflation
Necessary Stock Conditions:
1. Growing revenue
2. Growing net income
3. Consistent net margins
4. Higher gross/net profit margin compared to its peers in the industry
5. Growing share holders equity
6. Current ratios > 1
7. Debt to equity ratio (compare to peers )
8. Debt servicing ratio < 30%
9. Wide economic moat
10. Products and services used daily, and will stay relevant for at least 1 decade
Necessary Crypto Conditions:
1. Honest founders
2. Competent technical co-founders
3. Fair or non-existent pre-mine
4. Solid marketing and PR
5. Legitimate use-cases / adoption
Default Robot Settings:
Contribution (USD): $500
When: Dips below lower Bollinger Band
*Robot buys $500 worth of ETF , Stock, Crypto, every time price falls below the lower Bollinger Band
*Equity curve can be seen from the bottom panel*
Risk Warning:
This strategy is low-risk, however it assumes you have a long time horizon of at least 5 to 10 years. The longer your holding-period, the better your returns. The only thing the user has to keep-in-mind are the macro-economic conditions as stated above. If unsure, please stick to ETFs rather than buying individual stocks or cryptocurrencies.
Relative Strength Line by @iArpanKHello Traders!
I'm a Momentum Trader, following the Indian & US markets. Most of us are familiar with the Relative Strength (RS) indicator, popularized by Investor's Business Daily (IBD) and available on their MarketSmith platform. So, here I'm sharing a script that does the same and additionally pops an alert label when the RS line hits a new high (similar to Blue Dot appearance on MarketSmith charts).
User Settings
Inputs tab
Base Symbol : Symbol of the security/index with which you want to compare your current active symbol.
Period : Number of days since which you want to scan for a new high (default is 250 days, which approximately pops alerts for new 52 week high in RS). For example, if you want to look for new 10 days high in RS, set the Period to 10.
Style tab
RS Line : Change color using the palette provided (default is blue).
Alert Label : Show/hide alert labels by checking/unchecking the box. Change color using the palette provided. Change alert label symbol.
Precision : Default is two decimal places. Can be changed as per requirement.
Usage
The indicator consists of two components- the Relative Strength (RS) line & alert labels on new RS highs. Relative strength gives a measure of how the underlying security is performing with respect to a base index or security. For example, how is NSE:DIXON performing w.r.t NSE:NIFTY or how is NASDAQ:AAPL performing w.r.t. the TVC:SPX .
A rising RS line tells us that the underlying entity is outperforming the base entity. Similarly, a declining RS line shows under-performance of the underlying entity. A new high in RS (especially before a new high in price) often gives valuable information about the underlying security's strength w.r.t. the general market, and can tip us off to a possible breakout in the price in near future.
Making RS lists (list of stocks making new high in RS on heavy down days in index) can be very helpful to sort out leaders that are best resisting the decline and are likely to move up aggressively when the market turns favorable.
The concept of RS is extensively used by momentum traders and growth stock traders. When used in conjunction with price & volume action, this can be a very powerful tool in your trading arsenal. You can now easily spot RS trends and new highs visually by simply adding this indicator to your chart!
Conclusion
If you like this script, click on Add to favorite indicators , so that you can easily add this indicator from your favorites tab right away.
Thanks!
Relative Strength RatioAbout this indicator:
This indicator goes under many different names such as Relative Strength Ratio, Comparative Strength, Relative Strength Comparison (RSC) etc.
It compares the strength of the current asset to another asset of your choice and displays the relative strength of the current asset. (Not RSI)
There are several comparative indicators published already here on TV but I have added some unique features that I think is really useful.
When to use it:
This is useful when you want to compare for example a stock with its sector to find out if the stock is a leadership stock in that sector or main index.
You could also use it to compare the sector to its index etc.
If you want to compare for example a stock to both its index and its sector at the same time I suggest you add 2 instances of this indicator.
In many trading systems you are supposed find the strongest tickers by identifying "layers of strength" like 1. The strongest asset class that money is flowing into (like stocks, commodities, bonds, etc.) 2. Find the strongest sectors. 3. Find the stocks outperforming those sectors. 4. Find some kind of entry signal there.
How it works:
The indicator calculates an "RS line" (Relative Strength) by dividing the current ticker with a ticker of your choice. This creates a ratio or pair similar to how currencies are related to each others like USDGBP (dollar against pound). The RS line is black by default so you might want to change its color if you use a dark theme.
If the RS line is moving up it means your current asset is stronger than the asset you are comparing it with and vice versa.
Use the simple moving average to quickly see long term strength trends.
Features
RS line
Shows the relative strength of the current asset.
SMA
This Simple Moving Average has directional coloring; green when it is angled up and red when it is angled down. You can customise the period in the settings. If you don't want the color change just make both up/down color the same.
Relative market label
This displays the market you are currently comparing with as a label next to the last data point.
Because I tried stocks in 2 different countries I want to know which index I am comparing with and this label saves me from going into the settings to check. I find it to be a life saver!
Please let me know if you find any problems or if you have any ideas for improvement
SectorsThis script attempts to show the relative strength of the 11 sectors in the SPX, which can be accomplished in three ways:
1. Sectors - displays all sector indices as they appear normally
2. Sector Relativity - displays each sector divided by the sum of the other 10 sectors
3. Sector Alpha - displays the alpha of each sector as compared to the sum of the other 10 sectors
I have seen some other iterations of this script that compare each sector to the SPX as a whole, a couple problems with that:
1. SPX sector weightings are unequal and change quarterly, meaning you will get an inaccurate depiction of relative sector strength across time.
2. Even if using an equal-weight SPX, you would be comparing a sector to itself as all 11 sectors are included in the SPX, not just the complementary 10 you are looking to compare one sector to.
For more information on the sectors in the SPX or the calculation of Alpha, visit the links at the top of the script.
*Includes an option for repainting -- default value is true, meaning the script will repaint the current bar.
False = Not Repainting = Value for the current bar is not repainted, but all past values are offset by 1 bar.
True = Repainting = Value for the current bar is repainted, but all past values are correct and not offset by 1 bar.
In both cases, all of the historical values are correct, it is just a matter of whether you prefer the current bar to be realistically painted and the historical bars offset by 1, or the current bar to be repainted and the historical data to match their respective price bars.
As explained by TradingView,`f_security()` is for coders who want to offer their users a repainting/no-repainting version of the HTF data.
Cryptos Relative Strength Oscillator
This is an oscillator made of biggest 40 cryptocurrency/USDT pairs.
* It shows relative strength and change of crypto market during certain time on given interval.
* The tool has a bunch of data put together into one oscillator:
* top and bottom lines are made of 3 strongest and 3 weakest crypto pairs (out of 40)
* has visible names of that pairs for several candles back (it cannot show more due to TV's Pine limitations)
* in settings you can set up 2 methods of calculations:
1) % change from SMA of price, default is SMA 5
2) % changes from x-candles back, to see that change from the last candle please turn of 'Moving Average' and set up 'Bars Back' to 1
* you can change source to close/hl2/ohlc2/etc
Notice 1:
- to have nicer visibility of whole oscillator make it bigger part of whole screen then you normally use for other oscillators
Notice 2:
- scroll your mouse to widen the horizontal axis, so names of certain crypto pairs will be more readable
Notice 3:
- script has 40 Pine security functions (to gather all the data from all pairs) so it can load up to several seconds
- also every change in settings will possibly result in longer loading time
ps. This script is invite-only for the members of our trading group (info in signature, group is free of charge).
MAVERICKAMIT01-RELATIVE STRENGTHTHE SCRIPT SIMPLY DIVIDES THE STOCK PRICE BY NIFTY TO MEASURE UNDER PERFORMANCE AND OUT PERFORMANCE WITH NIFTY. YOU CAN CHANGE SETTINGS FROM NIFTY TO ANY OTHER SECTOR LIKE CNX FMCG TO MEASURE SECTOR PERFORMANCE AND UNDER PERFORMANCE !!!
wMRS | Weighted-Mansfield Relative Strength - 4CR CUPThis version of Mansfield Relative Strength ( MRS ) weights the MRSs with different lookback periods by adding the weight of 2:1:1:1 to MRS (1Q) : MRS (2Q) : MRS (3Q) : MRS (4Q).
Typically, the lookback period of a MRS is reference to a full year, i.e. 260 trading dates or 52 weeks; to better represents the relative strength of a stock to a recent performance, someone suggested to add heavier weight on the most recent quarter MRS , i.e. MR(1Q) and the same weight to other quarters, namely, MRS (2Q), MRS (3Q), MRS (4Q).
For some of the stocks you may be interested was IPO not long ago, the lookback period is relaxed for customizing. Once you set the total lookback period, representing the 4Q, in the indicator, the other shorter lookback periods will be auto-calculated, i.e. 1Q, 2Q, 3Q.
A simple moving average of the wMRS is also added for your easier analysis on the trend development of the strength.
MRS | Mansfield Relative Strength - 4CR CUPThere are many investors referring to Relative Strength (RS) indicator published by Investor’s Business Daily (IBD) for their analysis. Since the RS published by IBD is a proprietary indicator, no exact formulation is published on it.
Many discussion suggested that an alternative to the IBD RS is the Mansfield Relative Strength .
There are 2 parameters for Mansfield Relative Strength setting, namely the market index and the lookback period, n. the default setting of Mansfield Relative Strength adopted by Stan Weinstein was “SPY” and “52” in weekly chart and “200” in daily chart .
Stan Weinstein used the Mansfield Relative Strength indicator on weekly charts. He suggested the breakouts out of a base had to go together with rising relative strength . The Mansfield RS needs to be rising and close to or above 0.
This version of Mansfield Relative Strength relaxes these input parameters for your own choice.
The market index can be set to other market index, e.g. NDX, DJI, NI255, MOEX , TAIEX , HSI , etc. and the lookback period is relaxed to integral input, e.g. 60, 90, 150, etc.
Mansfield Relative Strength
The Relative Strength indicator adopted by Stan Weinstein in his book: “Secrets For Profiting in Bull and Bear Markets” is formulated as Mansfield Relative Strength ( MRS ).
The formula of this indicator is based on the regular Dorsey RS (DRS):
DRS = Price_stock / Price_index
MRS = 100 * (DRS_today / sma (DRS, n)) - 1)
Where:
DRS = Dorsey Relative Strength
SMA = Simple moving average over n days.
The Mansfield Relative Strength formulates as the change of ratio of DRS to its own n-day moving average, this means:
MRS equals to 0 if the DRS is exactly equal to its n day moving average.
MRS is negative if the DRS is below its n day moving average.
MRS is positive if the DRS is above its n day moving average.
Using Mansfield Relative Strength
The MRS tells the relative price movement of the stock to the market index in a period of time concern. As with the Dorsey RS , you can use Mansfield RS to examine if a stock performs better than the market.
This indicator has the advantage over the Dorsey RS that in Dorsey RS only trend matters while for Mansfield RS the values whether below or above the 0 also matters. This allows us to screen for stocks with a MRS value above 0. When we see that the MRS is far above 0 and has been above 0 for some time, we have found a stock that outperforms the market heavily. We can buy this kinds of stock when dips occur.
RS.ROC | Relative Strength - Rate of Changes - 4CR CUPFor completeness of Relative Strength studies, the Relative Strength based on rate of changes (ROC) with weighting is coded and presented as well.
The RS.ROC is similar to the formulation of RS by IBD before rank among all the stocks in the market.
The lookback period is relaxed for customizing. Once you set the total lookback period, representing the 4Q, in the indicator, the other shorter lookback periods will be auto-calculated, namely, 1Q, 2Q, 3Q.
A simple moving average of the RS.ROC is also added for your easier analysis on the trend development of the strength.
To use it later at your charting later,
1. Favorite it;
2. Select from your favorite list.
Candlestick RSThis is a candlestick charted Relative Strength indicator. It compares the chosen stock's progress compared to that of the SPY ETF ... ( SPY is used so it should hopefully update intraday). I use this indicator to see which stocks are outperforming the market.
Input Variable Descriptions:
Ratio: this variable is a float (0 to 1) that is basically how close the Candlestick RS is to the actual price action of the chart. (1.0 being right on top of it, 0.0 being as far away as possible from it)
Ballpark SPY price: this variable has to be constant, and due to the way pinescript works, you have to manually put in a ballpark of what SPY is at.
Neither of these variables influences the actual data of the indicator, but rather how it is shown on screen. It's difficult to describe, so I recommend you messing around with the variables and see what changes.
Hope this helps, I find this useful, so I figured I'd publish this... This is my first pine script so forgive me for any errors, just want to help :)
CPR Width + MTF, Offset and BarcolorsDue to the request of some users and inspired by "5 Day ADR ICT Intraday Tracker" I updated "CPR Width" and added extra functionality for your convenience.