Weekly RSI Buy/Sell SignalsWeekly RSI Buy/Sell Signal Indicator
This indicator is designed to help traders identify high-probability buy and sell opportunities on the weekly chart by using the Relative Strength Index (RSI). By utilizing weekly RSI values, this indicator ensures signals align with broader market trends, providing a clearer view of potential price reversals and continuation.
How It Works:
Weekly RSI Calculation: This script calculates the RSI using a 14-period setting, focusing on the weekly timeframe regardless of the user’s current chart view. The weekly RSI is derived using request.security, allowing for consistent signals even on intraday charts.
Signal Conditions:
Buy Signal: A buy signal appears when the RSI crosses above the oversold threshold of 30, suggesting that price may be gaining momentum after a potential bottom.
Sell Signal: A sell signal triggers when the RSI crosses below the overbought threshold of 70, indicating a possible momentum shift downwards.
Visual Cues:
Buy/Sell Markers: Clear green "BUY" and red "SELL" markers are displayed on the chart when buy or sell conditions are met, making it easy to identify entry and exit points.
RSI Line and Thresholds: The weekly RSI value is plotted in real time with color-coded horizontal lines at 30 (oversold) and 70 (overbought), providing a visual reference for key levels.
This indicator is ideal for traders looking for reliable, trend-based signals on higher timeframes and can be a helpful tool for filtering out shorter-term market noise.
Relativestrength
Industry Group Strength - IndiaPresenting the Industry Group Strength Indicator for India market, designed to help traders identify top-performing stocks within specific industry groups that are predefined.
⦿ Identifies Leading Stocks in Industry Groups
⦿ Analyses the following metrics
YTD Return : Measures stock performance from the start of the year.
RS Rating : Relative Strength rating for user-selected periods.
% Return : Percentage return over a user-selected lookback period.
Features
This indicator dynamically recognises the industry group of the current stock on the chart and ranks stocks within that group based on predefined data points. Traders can add this indicator to focus on top-performing stocks relative to their industry.
⦿ Color-coded for Easy Visualisation
You can choose from the following key metrics to rank stocks:
YTD Return
RS Rating
% Return
⦿ Table Format with Performance Metrics Compact mode
Vertical View
Horizontal View
All of the three metrics are shown in the compact mode and the current stock that is viewed is highlighted!
Vertical view
Horizontal view
Stock Ranking
Stocks are ranked based on their performance within industry groups, enabling traders to easily spot leaders and laggards in each sector. Color-coded gradients visually represent the stocks’ performance rankings, with higher percentile rankings indicating better performance.
Relative Strength (RS)
Relative Strength (RS) compares a stock’s performance against the benchmark index. The RS value is normalized from 1 to 99, making it easier to compare across different stocks. A rising RS value indicates that the stock is outperforming the market, helping traders quickly gauge relative performance within industry groups.
Limitations
At the time of developing this indicator, Pine requests are limited to 40 per script so the predefined symbols had to be filtered to 40 per Industry group
Stocks Filters
Filters that are used to filter the stocks in an Industry group to have maximum of 40 stocks
⦿ Auto, Chemical, Engineering, Finance, Pharma
Market Cap >= 1000 Crores and Market Cap <= 60000 Crores
Price >= 30 and Price <= 6000
50 Days Average ( Price * Volume ) >= 6 Crores
⦿ For rest of the Industry groups
Market Cap >= 1000 Crores and Market Cap <= 100000 Crores
Price >= 20 and Price <= 10000
50 Days Average ( Price * Volume ) >= 3 Crores
Credits
This indicator is forked from the Script for US market by @Amphibiantrading Thanks Brandon for the beginning of this indicator.
This indicator is built on TradingView’s new dynamic requests feature, thanks to @PineCoders for making this possible!
Top 5 Trend [KintsugiTrading]Top 5 Trend
This script provides a visual indicator for tracking the average trend of five selected stocks. By calculating the exponential moving average (EMA) of the closing price of the five selected stocks, the indicator helps users quickly assess overall market sentiment. The indicator's original purpose was to inform the user of the direction of the five largest stocks that make up ~25% of the S&P 500.
Key Features:
Custom Stock Selection: Choose any five stocks to monitor and visualize their combined trend.
EMA-Based Trend: The indicator compares a fast and slow EMA to determine the direction of the trend. When the fast EMA is above the slow EMA, the trend is considered bullish (uptrend); otherwise, it's bearish (downtrend).
Customizable Colors: You can easily customize the colors for both uptrends and downtrends, giving you control over the visual representation of the trend.
Trend Bar Display: For an easy, sleek, and simple reference - The script displays a trend arrow in the lower-right corner of the chart for bullish momentum and a trend arrow in the top-right corner of the chart for bearish momentum.
This indicator is perfect for traders who want to monitor the combined movement of a group of major stocks in order to easily compare strengths or weaknesses. It is a key visual aid in understanding if the overall sentiment is bullish or bearish based on the selected stocks' performance, thus making sure the user is always trading on the right side of momentum.
Dynamic Sentiment RSI [UAlgo]The Dynamic Sentiment RSI is a technical analysis tool that combines the classic RSI (Relative Strength Index) concept with dynamic sentiment analysis, offering traders enhanced insights into market conditions. Unlike the traditional RSI, this indicator integrates volume weighting, sentiment factors, and smoothing features to provide a more nuanced view of momentum and potential market reversals. It is designed to assist traders in detecting overbought/oversold conditions, momentum shifts, and to generate potential buy or sell signals using crossover and crossunder techniques. By dynamically adjusting based on sentiment and volume factors, this RSI offers better adaptability to varying market conditions, making it suitable for different trading styles and timeframes.
This tool is particularly helpful for traders who wish to explore not only price movement but also the underlying market sentiment, offering a more comprehensive approach to momentum analysis. The sentiment factor amplifies the RSI's sensitivity to price shifts, making it easier to detect early signals of market reversals or the continuation of a trend.
🔶 Key Features
Dynamic Sentiment Calculation: The indicator incorporates a "Sentiment Factor" that adjusts the RSI length dynamically based on a multiplier, helping traders better understand market sentiment at different time intervals.
Volume Weighting: When enabled, the RSI calculations are weighted by volume, allowing traders to give more importance to price movements with higher trading volume, which may provide more accurate signals.
Smoothing Feature: A customizable smoothing period is applied to the RSI to help filter out noise and make the signal smoother. This feature is particularly useful for traders who prefer to focus on long-term trends while minimizing false signals.
Step Size Customization: A "Step Size" input allows users to round the sentiment RSI to predefined intervals, making the results easier to interpret and act upon. This feature allows you to focus on significant sentiment changes and ignore minor fluctuations.
Crossover/Crossunder Alerts: The indicator includes crossover and crossunder signals on the zero-line, helping traders identify potential buy and sell opportunities as the smoothed RSI crosses these levels.
The indicator offers a clear visual display with multiple color-coded lines and areas:
Sentiment RSI: Plotted as an area chart, color-coded based on sentiment strength.
Raw RSI: A purple line representing the raw adjusted RSI.
Smoothed RSI: A dynamic line, color-coded aqua or orange based on its position relative to the zero line.
Buy/Sell Signals: Triangle shapes are plotted at crossovers and crossunders, providing clear entry and exit points.
🔶 Interpreting the Indicator
Sentiment RSI
-This line represents the sentiment-adjusted RSI, where the higher the value, the stronger the bullish sentiment, and the lower the value, the stronger the bearish sentiment. It is rounded to step intervals, making it easier to detect significant shifts in sentiment.
- A positive sentiment RSI (above 0) suggests bullish market conditions, while a negative sentiment RSI (below 0) suggests bearish conditions.
Smoothed RSI
The smoothed RSI helps reduce noise and shows the trend more clearly.
Crossovers of the zero line are significant:
- Crossover above zero: Indicates that bullish momentum is building, potentially signaling a buying opportunity.
- Crossunder below zero: Signals a shift towards bearish momentum, potentially indicating a sell signal.
Traders should look for these crossovers in conjunction with other signals for more accurate entry/exit points.
Raw RSI (Adjusted)
The raw adjusted RSI offers a less smoothed, more responsive version of the RSI. While it may be noisier, it provides early signals of market reversals and trends.
Crossover/Crossunder Signals
- When the smoothed RSI crosses above the zero line, a "Signal Up" triangle appears, indicating a potential buying opportunity.
- When the smoothed RSI crosses below the zero line, a "Signal Down" triangle appears, signaling a potential sell opportunity.
These signals help traders time their entries and exits by identifying momentum shifts.
Volume Weighting (Optional)
- If volume weighting is enabled, the RSI will give more weight to periods of higher trading volume, making the signals more reliable when the market is highly active.
Strong Up/Down Levels (40/-40)
- These dotted lines represent extreme sentiment levels. When the sentiment RSI reaches 40 or -40, the market may be nearing an overbought or oversold condition, respectively. This could be a signal for traders to prepare for potential reversals or shifts in momentum.
By combining the various components of this indicator, traders can gain a comprehensive view of market sentiment and price action, helping them make more informed trading decisions. The combination of sentiment factors, volume weighting, and smoothing makes this indicator highly flexible and suitable for a variety of trading strategies.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Saral Relative Strength ComparisonRelative Strength Comparison
### Overview
The Relative Strength (RS) Indicator is a robust tool designed to measure the performance of sectors or stocks relative to a benchmark index. This indicator provides a comprehensive way to compare the relative strength of different sectors or stocks, with the default selection being the major sectors of the National Stock Exchange (NSE). It allows traders to analyze which sectors or stocks are outperforming or underperforming the benchmark over a specific period.
The RS compares how much a security's price has changed over a given period relative to the change in price of a benchmark over the same period. The result is expressed as a percentage, showing whether the security has outperformed or underperformed the benchmark. Positive RS values indicate outperformance, while negative values signal underperformance.
This indicator provides a dual representation of the data. RS values are displayed in both line charts and a table. The line charts provide a visual representation of trends, while the table offers a clear numerical comparison of the current, previous, and earlier RS values along with the rank of the sector/stock.
### Key Features
Benchmark & Sectors/Stocks Comparison:
Users can select a benchmark index (default: NIFTY 50) and up to 20 sectors or stocks for comparison. By default, the indicator includes the major sectors of NSE, but users can customize the selection as needed.
Customizable RS Calculation:
Users can set the period for RS calculation, with a default of 22 periods, providing flexibility to match different trading strategies.
Flexible Time Frame:
RS calculations are based on the time frame of the main chart, allowing users to seamlessly switch between different periods, from minutes to hours, days, weeks, or even months depending on their analysis needs.
Customizable Line Chart:
Users can adjust the width and color of the RS lines for each sector, making it easier to distinguish between different sectors on the chart.
Dynamic Table Display:
The indicator includes a toggle to display a table of RS values, with customizable position, toggle for background color coding, and selection for text color & size. This makes it easy to compare the RS values across multiple sectors at a glance.
Sorting Options:
The table can be sorted either by alphabetical order of sector/stock names or by their rank. The default sorting is by rank, but switching to alphabetical order helps to identify data of specific sector with ease.
Ranking System:
The table includes a column displaying the rank of each sector or stock based on their RS, with the top-performing items listed first by default. This helps users quickly identify market leaders and laggards.
Color-Coded Backgrounds:
The background color of the sector/stock names in the table corresponds to the colors of their RS lines on the chart, making it easy to correlate table data with the visual plots. Also, the table uses a color-coding system which shows ranks of RS Positive sectors with Green background and RS Negative sectors with Red background. Similarly, the maximum RS value of individual sector is highlighted in Navy Blue, the minimum in Aqua and other in Blue background. This visual aid helps users quickly identify the performance trend of individual sector.
Table Positioning:
The table can be positioned at different locations on the chart (Top Right, Middle Right, Bottom Right, Top Left, Middle Left, Bottom Left), ensuring it doesn't obstruct important chart data.
### Input - RS Parameters:
Benchmark: Ticker ID of the comparative security. The default benchmark is the NIFTY 50 index, but users can select any other ticker as the benchmark for comparison.
Period-RS: The period for calculating the RS line. The default period is 22, but users can adjust this to suit their trading strategy and to analyze different time horizons for sector performance.
Line Width: Determines the thickness of the RS line in the chart. The default width is 2, providing a clear visual distinction between different sectors.
### Input - Table Parameters:
Show Table: Toggle to display or hide the table, allowing users to switch between graphical and tabular data representations.
Table Sorting: Users can sort the table alphabetically or by RS rank. The default sorting is by rank.
Table Position: Allows users to select the position of the table on the chart. Options include Top Right, Middle Right, Bottom Right, Top Left, Middle Left, and Bottom Left. The default position is Middle Right.
Color Code for Background: The background of the sector/stock names corresponds to their plot colors for easy mapping between plot and table values. Rank of RS Positive sectors will be highlighted with Green background and RS Negative sectors will be highlighted with Red color. The background color of the RS values in the table will change based on their magnitude. The highest RS value is Navy Blue, the lowest is Aqua, and other is Blue. This visual aid helps users quickly identify the performance of which sectors are improving or deteriorating.
Text Color: Users can select the color of the text displayed in the table. The default text color is White, ensuring readability against various background colors.
Text Size: Allows users to choose the size of the text in the table. Options include Auto, Tiny, Small, Medium, and Large, with the default being Small. This customization ensures that the table remains legible on different chart sizes.
### Input - Sectors/Stocks:
Sector/Stock Selection: Users can select which sectors to include as well as how many sectors to include in the analysis. The default sectors are major sectors of the National Stock Exchange, India. The selected sectors will be plotted as RS lines on the chart and will also appear in the table.
Color: Allows users to choose the color for each sector's RS line, making it easy to distinguish between them on the chart.
### Acknowledgement
This indicator is developed based on the concept discussed by Mr. Subhadip Nandy in Trader's Talk with Mr. Rohit Katwal.
Adaptive RSI-Stoch with Butterworth Filter [UAlgo]The Adaptive RSI-Stoch with Butterworth Filter is a technical indicator designed to combine the strengths of the Relative Strength Index (RSI), Stochastic Oscillator, and a Butterworth Filter to provide a smooth and adaptive momentum-based trading signal. This custom-built indicator leverages the RSI to measure market momentum, applies Stochastic calculations for overbought/oversold conditions, and incorporates a Butterworth Filter to reduce noise and smooth out price movements for enhanced signal reliability.
By utilizing these combined methods, this indicator aims to help traders identify potential market reversal points, momentum shifts, and overbought/oversold conditions with greater precision, while minimizing false signals in volatile markets.
🔶 Key Features
Adaptive RSI and Stochastic Oscillator: Calculates RSI using a configurable period and applies a dual-smoothing mechanism with Stochastic Oscillator values (K and D lines).
Helps in identifying momentum strength and potential trend reversals.
Butterworth Filter: An advanced signal processing filter that reduces noise and smooths out the indicator values for better trend identification.
The filter can be enabled or disabled based on user preferences.
Customizable Parameters: Flexibility to adjust the length of RSI, the smoothing factors for Stochastic (K and D values), and the Butterworth Filter period.
🔶 Interpreting the Indicator
RSI & Stochastic Calculations:
The RSI is calculated based on the closing price over the user-defined period, and further smoothed to generate Stochastic Oscillator values.
The K and D values of the Stochastic Oscillator provide insights into short-term overbought or oversold conditions.
Butterworth Filter Application:
What is Butterworth Filter and How It Works?
The Butterworth Filter is a type of signal processing filter that is designed to have a maximally flat frequency response in the passband, meaning it doesn’t distort the frequency components of the signal within the desired range. It is widely used in digital signal processing and technical analysis to smooth noisy data while preserving the important trends in the underlying data. In this indicator, the Butterworth Filter is applied to the trigger value, making the resulting signal smoother and more stable by filtering out short-term fluctuations or noise in price data.
Key Concepts Behind the Butterworth Filter:
Filter Design: The Butterworth filter works by calculating weighted averages of current and past inputs (price or indicator values) and outputs to produce a smooth output. It is characterized by the absence of ripple in the passband and a smooth roll-off after the cutoff frequency.
Cutoff Frequency: The period specified in the indicator acts as a control for the cutoff frequency. A higher period means the filter will remove more high-frequency noise and retain longer-term trends, while a lower period means it will respond more to short-term fluctuations in the data.
Smoothing Process: In this script, the Butterworth Filter is calculated recursively using the following formula,
butterworth_filter(series float input, int period) =>
float wc = math.tan(math.pi / period)
float k1 = 1.414 * wc
float k2 = wc * wc
float a0 = k2 / (1 + k1 + k2)
float a1 = 2 * a0
float a2 = a0
float b1 = 2 * (k2 - 1) / (1 + k1 + k2)
float b2 = (1 - k1 + k2) / (1 + k1 + k2)
wc: This is the angular frequency, derived from the period input.
k1 and k2: These are intermediate coefficients used in the filter calculation.
a0, a1, a2: These are the feedforward coefficients, which determine how much of the current and past input values will contribute to the filtered output.
b1, b2: These are feedback coefficients, which determine how much of the past output values will contribute to the current output, effectively allowing the filter to "remember" past behavior and smooth the signal.
Recursive Calculation: The filter operates by taking into account not only the current input value but also the previous two input values and the previous two output values. This recursive nature helps it smooth the signal by blending the recent past data with the current data.
float filtered_value = a0 * input + a1 * prev_input1 + a2 * prev_input2
filtered_value -= b1 * prev_output1 + b2 * prev_output2
input: The current input value, which could be the trigger value in this case.
prev_input1, prev_input2: The previous two input values.
prev_output1, prev_output2: The previous two output values.
This means the current filtered value is determined by the combination of:
A weighted sum of the current input and the last two inputs.
A correction based on the last two output values to ensure smoothness and remove noise.
In conclusion when filter is enabled, the Butterworth Filter smooths the RSI and Stochastic values to reduce market noise and highlight significant momentum shifts.
The filtered trigger value (post-Butterworth) provides a cleaner representation of the market's momentum.
Cross Signals for Trade Entries:
Buy Signal: A bullish crossover of the K value above the D value, particularly when the values are below 40 and when the Stochastic trigger is below 1 and the filtered trigger is below 35.
Sell Signal: A bearish crossunder of the K value below the D value, particularly when the values are above 60 and when the Stochastic trigger is above 99 and the filtered trigger is above 90.
These signals are plotted visually on the chart for easy identification of potential trading opportunities.
Overbought and Oversold Zones:
The indicator highlights the overbought zone when the filtered trigger surpasses a specific threshold (typically above 100) and the oversold zone when it drops below 0.
The color-coded fill areas between the Stochastic and trigger lines help visualize when the market may be overbought (likely a reversal down) or oversold (potential reversal up).
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Relative Strength and MomentumRelative Strength and Momentum Indicator
Unlock deeper market insights with the Relative Strength and Momentum Indicator—a powerful tool designed to help traders and investors identify the strongest stocks and sectors based on relative performance. This custom indicator displays essential information on relative strength and momentum for up to 15 different symbols, compared against a benchmark index, all within a clear and organized table format.
Key Features:
1. Customizable Inputs: Choose up to 15 symbols to compare, along with a benchmark index, allowing you to tailor the indicator to your trading strategy. The 'Lookback Period' input defines how many weeks of data are analyzed for relative strength and momentum.
2. Relative Strength Calculation: For each selected symbol, the indicator calculates the Relative Strength (RS) against the chosen benchmark. This RS is further refined using an exponential moving average (EMA) to smooth the results, providing a more stable trend overview.
3. Momentum Analysis: Momentum is determined by analyzing the rate of change in relative strength. The indicator calculates a momentum rank for each symbol, based on its relative strength’s improvement or deterioration.
4. Percentile Ranking System: Each symbol is assigned a percentile rank (from 1 to 100) based on its relative strength compared to the others. Similarly, momentum rankings are also assigned from 1 to 100, offering a clear understanding of which assets are outperforming or underperforming.
5. Visual Indicators:
a. Green: Signals improving or stable relative strength and momentum.
b. Red: Indicates declining relative strength or momentum.
c. Aqua: Highlights symbols performing well on both relative strength and momentum—ideal candidates for further analysis.
6. Two Clear Tables:
a. Relative Strength Rank Table: Displays weekly rankings of relative strength for each symbol.
b. Momentum Table: Shows momentum trends, helping you identify which symbols are gaining or losing strength.
7. Color-Coded for Easy Analysis: The tables are color-coded to make analysis quick and straightforward. A green color means the symbol is performing well in terms of relative strength or momentum, while red indicates weaker performance. Aqua marks symbols that are excelling in both areas.
Use Case:
a. Sector Comparison: Identify which sectors or indexes are showing both relative strength and momentum to pick high-potential stocks. This allows you to align with broader market trends for improved trade entries.
b. Stock Selection: Quickly compare symbols within the same sector to find the stronger performers.
Stock Strength IndexScript Title: Stock Strength Index made by Vishal R Janjire
Description:
The Stock Strength Index combines several advanced technical analysis tools into one comprehensive Pine Script indicator designed to provide a nuanced view of market strength and trends. This script integrates Relative Strength (RS), Commodity Channel Index (CCI), and additional trend confirmation mechanisms to deliver actionable insights for traders.
( Must Read )
Important parameter read before use this indicator
0. Zero line green means stock is in up trend and if it is red means down trending.
1. Zero line is green it means stocks is outperforming its index that is Nifty 50 ( but dont consider its results on nifty itself that is it will not work only on nifty 50)
2. Zero line is red it means stocks is underperforming its index that is Nifty 50
3. bubble is confirmation tool when it show green bubble on zero line it means on short time frame it want go up trending and vise versa
4. Always remember higher time frame is greater than chart time frame like day vs hour
Key Features:
5. Best suitable time when higher time frame is 15 minutes and chart time is 5 minute for intraday trading. for short swing use HTF 1 Day and chart time is 1 hour or 2 hour.
1. Relative Strength (RS) Analysis:
- Calculation: Measures the performance of the base symbol relative to a comparative symbol over a specified period.
- Visualization: Plots the RS value with color-coded lines to indicate bullish (green) or bearish (red) conditions based on crossovers. Users can toggle the RS color based on its value or trend direction.
- Trend Analysis: Displays a simple moving average (SMA) of RS to visualize trend strength and direction. The SMA’s color changes to indicate rising or falling trends.
2. Commodity Channel Index (CCI):
- Current Timeframe CCI: Calculates the CCI for the current timeframe to assess price momentum.
- Higher Timeframe CCI: Computes the CCI for a higher timeframe to provide a broader market perspective.
- Background Color: Highlights the chart background in green or red based on whether both current and higher timeframe CCIs are above or below zero, respectively.
3. Alerts:
- CCI Alerts: Set up alerts for key CCI crossovers, including when both CCIs are above or below zero, or when CCI crosses key levels (100 and -100) on either timeframe.
4. Trend Confirmation:
- Price Confirmation: Uses price and its moving average to identify bullish or bearish divergence, with visual bubbles plotted on the chart to confirm potential trade signals.
5. Customization Options:
- RS Parameters: Adjust settings for RS period, comparative symbol, and whether to display reference labels or the zero line.
- CCI Parameters: Configure CCI lengths for both current and higher timeframes and select the source of the CCI calculation.
Concepts Underlying Calculations:
- Relative Strength (RS): Measures the relative performance of the base symbol compared to another symbol, adjusted over a specified period to capture momentum and trend strength.
- Commodity Channel Index (CCI): Calculates the deviation of the price from its average to identify overbought or oversold conditions and potential reversal points.
- Simple Moving Average (SMA): Smooths the RS values to highlight trends and potential trend reversals.
This indicator is designed for traders seeking a comprehensive tool that combines multiple analytical methods into one cohesive system. It aims to offer a clearer view of market trends, strengths, and potential trade opportunities based on a blend of relative strength and momentum indicators.
---
This description provides a detailed overview of the script's functionality and customization options while ensuring clarity and compliance with the publishing rules.
Saral Relative StrengthRelative Strength Indicator
### Overview
The Relative Strength (RS) Indicator is a robust tool designed to measure the performance of a security relative to a benchmark or another security. Unlike traditional indicators, this RS Indicator calculates the outperformance or underperformance in percentage terms, providing a clear and concise comparison.
The equation for calculation can be found in the code itself. This equation compares how much a security's price has changed over a given period (len) relative to the change in price of a benchmark over the same period. The result is expressed as a percentage, showing whether the security has outperformed or underperformed the benchmark. A positive RS value indicates outperformance, while a negative value signals underperformance.
Basically, this indicator is an enhanced version of 'Relative Strength' indicator of 'BharatTrader' Sir with added features like automatic divergence plotting, color-coded filled area and sector names for NSE F&O securities. Default values for some of the parameters are based on discussion by Subhadip Nandy Sir in Trader's Talk with Mr. Rohit Katwal.
### Input Parameters:
Source: The price of a security used in the calculation, with the default being the 'close' price.
Comparative Symbol: Ticker ID of the comparative security, with the default set to NIFTY 50.
Period-RS: The period for calculating the RS line, with a default of 22. The RS line measures the relative performance of the security against the benchmark, helping to identify outperformance or underperformance over time.
Period-MA: The period for calculating the Simple Moving Average (SMA) overlay on the RS line, with a default of 11. The SMA provides a smoothed view of the RS line, helping to identify trends more clearly.
Lookback - Zero Line Trend: Zero Line Trend look-back period, used to determine the angle of the RS line, with a default of 5. This parameter influences the color of the Zero Line based on whether the RS line’s angle is positive or negative.
Lookback - Divergence: Divergence look-back period, with a default of 2, used to detect divergence between the price and the RS line.
Display MA Line: Controls the display of the SMA line. When enabled, the SMA line is plotted over the RS line to indicate trend strength.
Toggle RS Color on MA Crossovers: Controls the color of the RS line. If disabled, the RS line is purple. If enabled, the RS line changes color based on its position relative to the SMA: green for RS > MA, red for RS < MA.
Display Zero Line Trend: Controls the display of the Zero Line. If disabled, the Zero Line is black. If enabled, the Zero Line’s color changes to green or maroon based on the RS line’s angle over time.
Display Divergence: Controls the display of divergence dots on the RS line, indicating potential reversal points.
Display Filled Area: Controls whether the area between the Zero Line and the RS line is filled with color. The fill color changes based on the relationship of the RS line with the SMA & Zero Line as given below.
- Dark Green: RS > 0 and RS > MA, indicating strong outperformance.
- Light Green: RS > 0 and RS < MA, indicating weakening outperformance.
- Dark Red: RS < 0 and RS < MA, indicating strong underperformance.
- Light Red: RS < 0 and RS > MA, indicating weakening underperformance.
Display Sector Name: Controls the display of sector names for NSE F&O securities, helping to plot RS with sectoral indices.
### Key Features:
RS Line:
The RS line represents the relative performance of a security against a benchmark over a specified period (default 22). It helps traders identify whether the security is outperforming or underperforming the benchmark.
SMA Overlay:
A Simple Moving Average (SMA) line is plotted over the RS line, with a default period of 11. The SMA provides a smoothed trend of the RS, making it easier to identify consistent performance trends.
Trend-Sensitive Zero Line:
The Zero Line’s color adapts based on the RS line’s trend:
- Green: Positive angle of the RS line, indicating upward momentum.
- Maroon: Negative angle, indicating downward momentum.
The color can be toggled, with an option to display the Zero Line in black.
Divergence Detection:
Automatically detects and highlights divergences.
- Positive Divergence: RS line rises while the price falls, marked by blue dots.
- Negative Divergence: RS line falls while the price rises, marked by black dots.
Color-Coded Fill Area:
The area between the RS line and the Zero Line is filled with color to visually distinguish different market conditions, with Dark and Light colors providing insight into the strength of the performance:
- Dark Green: Indicates strong outperformance (RS > 0 and RS > MA), suggesting the security is showing significant strength compared to the benchmark.
- Light Green: Indicates weakening outperformance (RS > 0 and RS < MA), signaling that while the security is still outperforming, its strength is diminishing.
- Dark Red: Indicates strong underperformance (RS < 0 and RS < MA), showing the security is significantly weaker than the benchmark.
- Light Red: Indicates weakening underperformance (RS < 0 and RS > MA), suggesting the security is still underperforming but may be regaining some strength.
Sectoral Strength:
Displays sector names for NSE F&O securities, helping users to compare the RS of individual securities with their respective sectoral indices. Comparative Security can be changed easily based on this sector name. Users need not to remember sector names for individual securities.
If any security is not categorized in a specific sector, CNX500 has been considered as a default sector for NSE F&O securities. For other securities, NIFTY50 has been considered as a default sector.
Trend Signals with TP & SL [UAlgo] StrategyThe "Trend Signals with TP & SL Strategy" is a trading strategy designed to capture trend continuation signals while incorporating sophisticated risk management techniques. This strategy is tailored for traders who wish to capitalize on trending market conditions with precise entry and exit points, automatically calculating Take Profit (TP) and Stop Loss (SL) levels based on either Average True Range (ATR) or percentage values. The strategy aims to enhance trade management by preventing multiple simultaneous positions and dynamically adapting to changing market conditions.
This strategy is highly configurable, allowing traders to adjust sensitivity, the ATR calculation method, and the cloud moving average length. Additionally, the strategy can display buy and sell signals directly on the chart, along with visual representation of entry points, stop losses, and take profits. It also features a cloud-based trend analysis using a MACD-driven color fill that indicates the strength and direction of the trend.
🔶 Key Features
Configurable Trend Continuation Signals:
Source Selection: The strategy uses the midpoint of the high-low range as the default source, but it is adjustable.
Sensitivity: The sensitivity of the trend signals can be adjusted using a multiplier, ranging from 0.5 to 5.
ATR Calculation: The strategy allows users to choose between two ATR calculation methods for better adaptability to different market conditions.
Cloud Moving Average: Traders can adjust the cloud moving average length, which is used in conjunction with MACD to provide a visual trend indication.
Take Profit & Stop Loss Management:
ATR-Based or Percent-Based: The strategy offers flexibility in setting TP and SL levels, allowing traders to choose between ATR-based multipliers or fixed percentage values.
Dynamic Adjustment: TP and SL levels are dynamically adjusted according to the selected method, ensuring trades are managed based on real-time market conditions.
Prevention of Multiple Positions:
Single Position Control: To reduce risk and enhance strategy reliability, the strategy includes an option to prevent multiple positions from being opened simultaneously.
Visual Trade Indicators:
Buy/Sell Signals: Clearly displays buy and sell signals on the chart for easy interpretation.
Entry, SL, and TP Lines: Draws lines for entry price, stop loss, and take profit directly on the chart, helping traders to monitor trades visually.
Trend Cloud: A color-filled cloud based on MACD and the cloud moving average provides a visual cue of the trend’s direction and strength.
Performance Summary Table:
In-Chart Statistics: A table in the top right of the chart displays key performance metrics, including total trades, wins, losses, and win rate percentage, offering a quick overview of the strategy’s effectiveness.
🔶 Interpreting the Indicator
Trend Signals: The strategy identifies trend continuation signals based on price action relative to an ATR-based threshold. A buy signal is generated when the price crosses above a key level, indicating an uptrend. Conversely, a sell signal occurs when the price crosses below a level, signaling a downtrend.
Cloud Visualization: The cloud, derived from MACD and moving averages, changes color to reflect the current trend. A positive cloud in aqua suggests an uptrend, while a red cloud indicates a downtrend. The transparency of the cloud offers further nuance, with more solid colors denoting stronger trends.
Entry and Exit Management: Once a trend signal is generated, the strategy automatically sets TP and SL levels based on your chosen method (ATR or percentage). The stop loss and take profit lines will appear on the chart, showing where the strategy will exit the trade. If the price reaches either the SL or TP, the trade is closed, and the respective line is deleted from the chart.
Performance Metrics: The strategy’s performance is tracked in real-time with an in-chart table. This table provides essential information about the number of trades executed, the win/loss ratio, and the overall win rate. This information helps traders assess the strategy's effectiveness and make necessary adjustments.
This strategy is designed for those who seek to engage with trending markets, offering robust tools for entry, exit, and overall trade management. By understanding and leveraging these features, traders can potentially improve their trading outcomes and risk management.
🔷 Related Script
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Swing Trend AnalysisIntroducing the Swing Trend Analyzer: A Powerful Tool for Swing and Positional Trading
The Swing Trend Analyzer is a cutting-edge indicator designed to enhance your swing and positional trading by providing precise entry points based on volatility contraction patterns and other key technical signals. This versatile tool is packed with features that cater to traders of all timeframes, offering flexibility, clarity, and actionable insights.
Key Features:
1. Adaptive Moving Averages:
The Swing Trend Analyzer offers multiple moving averages tailored to the timeframe you are trading on. On the daily chart, you can select up to four different moving average lengths, while all other timeframes provide three moving averages. This flexibility allows you to fine-tune your analysis according to your trading strategy. Disabling a moving average is as simple as setting its value to zero, making it easy to customize the indicator to your needs.
2. Dynamic Moving Average Colors Based on Relative Strength:
This feature allows you to compare the performance of the current ticker against a major index or any symbol of your choice. The moving average will change color based on whether the ticker is outperforming or underperforming the selected index over the chosen period. For example, on a daily chart, if the 21-day moving average turns blue, it indicates that the ticker has outperformed the selected index over the last 21 days. This visual cue helps you quickly identify relative strength, a key factor in successful swing trading.
3. Visual Identification of Price Contractions:
The Swing Trend Analyzer changes the color of price bars to white (on a dark theme) or black (on a light theme) when a contraction in price is detected. Price contractions are highlighted when either of the following conditions is met: a) the current bar is an inside bar, or b) the price range of the current bar is less than the 14-period Average Daily Range (ADR). This feature makes it easier to spot price contractions across all timeframes, which is crucial for timing entries in swing trading.
4. Overhead Supply Detection with Automated Resistance Lines:
The indicator intelligently detects the presence of overhead supply and draws a single resistance line to avoid clutter on the chart. As price breaches the resistance line, the old line is automatically deleted, and a new resistance line is drawn at the appropriate level. This helps you focus on the most relevant resistance levels, reducing noise and improving decision-making.
5. Buyable Gap Up Marker: The indicator highlights bars in blue when a candle opens with a gap that remains unfilled. These bars are potential Buyable Gap Up (BGU) candidates, signaling opportunities for long-side entries.
6. Comprehensive Swing Trading Information Table:
The indicator includes a detailed table that provides essential data for swing trading:
a. Sector and Industry Information: Understand the sector and industry of the ticker to identify stocks within strong sectors.
b. Key Moving Averages Distances (10MA, 21MA, 50MA, 200MA): Quickly assess how far the current price is from key moving averages. The color coding indicates whether the price is near or far from these averages, offering vital visual cues.
c. Price Range Analysis: Compare the current bar's price range with the previous bar's range to spot contraction patterns.
d. ADR (20, 10, 5): Displays the Average Daily Range over the last 20, 10, and 5 periods, crucial for identifying contraction patterns. On the weekly chart, the ADR continues to provide daily chart information.
e. 52-Week High/Low Data: Shows how close the stock is to its 52-week high or low, with color coding to highlight proximity, aiding in the identification of potential breakout or breakdown candidates.
f. 3-Month Price Gain: See the price gain over the last three months, which helps identify stocks with recent momentum.
7. Pocket Pivot Detection with Visual Markers:
Pocket pivots are a powerful bullish signal, especially relevant for swing trading. Pocket pivots are crucial for swing trading and are effective across all timeframes. The indicator marks pocket pivots with circular markers below the price bar:
a. 10-Day Pocket Pivot: Identified when the volume exceeds the maximum selling volume of the last 10 days. These are marked with a blue circle.
b. 5-Day Pocket Pivot: Identified when the volume exceeds the maximum selling volume of the last 5 days. These are marked with a green circle.
The Swing Trend Analyzer is designed to provide traders with the tools they need to succeed in swing and positional trading. Whether you're looking for precise entry points, analyzing relative strength, or identifying key price contractions, this indicator has you covered. Experience the power of advanced technical analysis with the Swing Trend Analyzer and take your trading to the next level.
Relative Strength (Volatility Adjusted)The volatility adjusted relative strength indicator offers a more precise approach to traditional RS indicators by incorporating volatility adjustments into its calculations. This will provide traders with a more nuanced view of relative performance between a selected instrument and a comparison index.
Identifying Relative Strength (RS) and Weakness (RW) against a benchmark like the SPY is crucial for traders, as it highlights institutional activity in an equity, which retail traders rarely achieve on their own. However, the traditional method of simply comparing the rate of change of a stock to the rate of change for the SPY can be flawed. This method often fails to account for the inherent volatility of each stock, leading to misleading RS/RW readings.
Consider two stocks that both move in response to SPY's movements. If SPY moves significantly more than its average (measured by its ATR), and the stock does the same, traditional RS calculations might show strength when, in fact, the stock is just mirroring SPY's increased volatility. For instance, if SPY typically moves $0.25 an hour but suddenly moves $1, and a stock typically moves $0.50 but moves $2, the stock's apparent RS might be overstated, when in reality there is no relative strength for the stock.
By adjusting for volatility using the ATR (Average True Range), we normalize these movements and get a clearer picture of true RS/RW. For example, if SPY moves 5 times its average rate and a stock moves the same multiple of its own ATR, the RS should be considered neutral rather than strong. Similarly if a stock in absolute terms moves $1 while the SPY also moves $1 but the stock usually moves at twice the rate of the SPY, the stock should be considered relatively weak - not neutral.
Usage
Use this to identify stocks with actual strength or weakness compared to the market.
When the RS line is above 0 and above the moving average it indicates a stock with relative strength that is still gaining more strength.
When the RS line is above 0 but above the moving average it indicates a stock with relative strength that is currently losing strength.
When the RS line is below 0 and below the moving average it indicates a stock with relative weakness that is still losing strength.
When the RS line is below 0 but above the moving average it indicates a stock with relative weakness that is starting to gain back some strength.
Relative Strength according to Oster (RSO)Overview:
Relative Strength according to Oster (RSO) is an innovative tool that redefines how traders assess an asset's market strength. Moving beyond traditional indicators, RSO offers a sophisticated and highly responsive measure of an asset's potential to continue performing well. By integrating groundbreaking methodologies, RSO equips traders with unparalleled insights into market dynamics, making it an essential tool for anyone looking to stay ahead in today's fast-paced trading environment.
Understanding RSL (Relative Strength according to Levy):
At its core, Relative Strength according to Levy (RSL) is a powerful concept rooted in the idea that an asset currently exhibiting strength is more likely to maintain or even enhance that strength in the future. RSL calculates this by comparing an asset's current price to its moving average, providing a clear picture of its relative performance over time. The further its value is above 1, the higher the market momentum and vice versa. This relationship to the moving average is crucial, as it indicates not just where the asset stands today but also its trajectory in the context of historical performance. The ability to identify assets that consistently outperform is a game-changer for traders, and RSL has long been a cornerstone in this pursuit.
RSO vs. Traditional RSL: A Leap Forward
The RSO takes the traditional RSL concept and propels it into new territory with its innovative correlation-based approach. This is where RSO truly shines, offering a unique and sophisticated analysis that goes far beyond the basics.
Why RSO is Revolutionary:
Correlation Adjustment: The RSO doesn’t just measure an asset’s strength in isolation. Instead, it adjusts its readings based on how closely the asset's price movements correlate with a chosen benchmark. This groundbreaking feature ensures that the RSO is not just reactive to past performance but also predictive of how the asset might behave relative to the broader market, adding a layer of precision that is unparalleled in traditional strength indicators.
Superior Strength Option: With the RSO, traders have the option to include superior strength factors, adding another dimension of insight. This feature allows for more stable and reliable long-term signals. On the flip side, those who prefer a more dynamic trading style can opt to exclude this factor for more frequent, shorter-term signals. This level of customization is rare and sets the RSO apart as a truly adaptable tool.
Enhanced Market Insights: RSO’s correlation-based approach doesn’t just show how strong an asset is—it reveals how that strength is likely to develop in relation to the benchmark's underlying trends. This isn’t merely about comparing performance; it’s about understanding the asset’s potential trajectory in a much broader market context. Such insight is invaluable for making informed, strategic trading decisions.
Practical Application:
The RSO isn’t just innovative in theory; it’s designed for practical, real-world trading. Traders can set customized alerts based on RSO’s readings, ensuring they’re always aware of key buy or sell signals as they occur. The flexibility to include or exclude superior strength factors means that RSO can be tailored to fit any trading style, whether focused on long-term investments or short-term opportunities.
Conclusion:
In conclusion, the Relative Strength according to Oster (RSO) is more than just an indicator; it’s a breakthrough in market analysis. By integrating correlation adjustments and offering unparalleled customization options, RSO provides traders with insights that are both deeper and more actionable than ever before. This innovative tool is designed to empower traders, giving them the edge they need to succeed in an increasingly complex market landscape. Whether you’re a seasoned trader or just starting out, the RSO is a must-have tool for navigating market trends with confidence and precision.
ZORZOR (Zone of Outperformance Ratio) with Supporting Indicators
This custom indicator introduces an approach to measuring asset performance through the Zone of Outperformance Ratio (ZOR), complemented by two supporting indicators for comprehensive market analysis.
1. ZOR (Zone of Outperformance Ratio)
The ZOR is the cornerstone of this indicator, offering a unique perspective on an asset's performance across multiple time zones:
Measures the degree of an asset's outperformance against a benchmark (default: NSE:NIFTY) across different time zones
Utilizes a weighted multi-timeframe approach for a holistic performance view
Combines performance ratios from 63, 126, 189, and 252-day zones and results in a score between 0-99, with higher scores indicating stronger outperformance across zones
Key Features:
Fully configurable weights for each timeframe (63, 126, 189, 252 days)
Customizable benchmark symbol
Color-coded display: Blue for scores ≥60 (strong performance), Red for scores <60 (weaker performance)
2. Supporting Indicators
To enhance analysis and provide context to the ZOR score, two additional indicators are included:
a) Distance to 52-week High:
Calculates the percentage distance between current price and 52-week high
Color-coded for quick interpretation:
Yellow-green when price is above 52-week high
Dark green when price is below 52-week high
Helps identify potential overbought conditions or breakout scenarios
b) Distance to EMA:
Shows percentage distance from current price to a user-defined EMA (default: 21-day)
Helps gauge short-term momentum relative to the trend
Useful for identifying potential mean reversion opportunities
Originality and Usefulness
The ZOR indicator offers a fresh perspective on relative performance by:
Combining multiple timeframes into a single, easy-to-interpret score
Applying a non-linear transformation to emphasize recent performance
Providing a flexible framework for comparing assets against any chosen benchmark
The supporting indicators complement the ZOR by offering additional context:
Distance to 52-week High helps identify potential trend strength and breakout scenarios
Distance to EMA provides insights into short-term momentum and potential mean reversion
This combination allows traders to:
Quickly identify outperforming assets across multiple timeframes
Assess whether an asset is extended from its long-term highs or short-term average
Make more informed decisions by considering relative performance, trend strength, and momentum in a single view
How to Use
1. Add the indicator to your chart
2. Customize settings in the indicator properties:
- Set benchmark symbol
- Toggle visibility of supporting indicators
- Customize EMA length for Distance to EMA
- Adjust ZOR calculation weights(Optional)
3. Interpret the color-coded labels:
- ZOR: Blue (strong performance) or Red (weaker performance)
- Distance to High: Yellow-green (above 52-week high) or Dark green (below)
- Distance to EMA: Purple label showing percentage
4. Use in conjunction with other technical and fundamental analysis for comprehensive trading decisions
This indicator provides a unique, multi-faceted approach to performance analysis, combining relative strength measurement with trend and momentum indicators for a holistic market view.
RSI DeviationAn oscillator which de-trends the Relative Strength Index. Rather, it takes a moving average of RSI and plots it's standard deviation from the MA, similar to a Bollinger %B oscillator. This seams to highlight short term peaks and troughs, Indicating oversold and overbought conditions respectively. It is intended to be used with a Dollar Cost Averaging strategy, but may also be useful for Swing Trading, or Scalping on lower timeframes.
When the line on the oscillator line crosses back into the channel, it signals a trade opportunity.
~ Crossing into the band from the bottom, indicates the end of an oversold condition, signaling a potential reversal. This would be a BUY signal.
~ Crossing into the band from the top, indicates the end of an overbought condition, signaling a potential reversal. This would be a SELL signal.
For ease of use, I've made the oscillator highlight the main chart when Overbought/Oversold conditions are occurring, and place fractals upon reversion to the Band. These repaint as they are calculated at close. The earliest trade would occur upon open of the following day.
I have set the default St. Deviation to be 2, but in my testing I have found 1.5 to be quite reliable. By decreasing the St. Deviation you will increase trade frequency, to a point, at the expense of efficiency.
Cheers
DJSnoWMan06
Volume Weighted Relative Strength Index (VWRSI) [AlgoAlpha]Volume Weighted Relative Strength Index 📈✨
The Volume Weighted Relative Strength Index (VWRSI) by AlgoAlpha enhances traditional RSI by incorporating volume weighting, providing a more nuanced view of market strength. It uses custom range detection to measure consolidation strength, applying dynamic scoring to highlight trend phases. The indicator includes customizable moving averages (SMA, EMA, WMA, VWMA) and color-coded visual cues for uptrends and downtrends. Additionally, it marks significant bullish and bearish trend points with symbols, making it easier to identify potential trading opportunities. This powerful tool helps traders make informed decisions by combining volume, price action, and trend analysis.
✨ Key Features :
📊 Volume-Weighted RSI : Combines RSI with volume for better accuracy.
🔄 Range Detection : Identifies consolidation phases.
🎨 Customizable MAs : Choose from various moving averages.
🔔 Alert Capabilities : Set notifications for trend points.
🚀 How to Use :
🛠 Add Indicator : Add the indicator to favorites, and customize the settings to suite your trading style.
📊 Analyze Market : Watch RSI and range score for trends.
🔔 Set Alerts : Get notified of bullish/bearish points.
✨ How It Works :
The Volume Weighted Relative Strength Index (VWRSI) combines traditional RSI with volume weighting to offer a more comprehensive view of market momentum. It calculates the RSI using the closing price, then weights it by volume to enhance the accuracy of the trend analysis. The indicator also includes a custom range detection feature that evaluates consolidation strength by dynamically scoring the RSI over a specified period. This scoring helps identify phases of strong trends and consolidations. Visual elements like color-coded trend fills and symbols for bullish and bearish points make it easier to spot key market movements and potential trading opportunities.
Stay ahead with VWRSI by AlgoAlpha! 📈💡
RSI - Made EasyThis indicator is a visually improved version of RSI. It makes it much easier to see what's happening by simplifying those confusing, intersecting lines. With this, you can detect the RSI direction more clearly. All the features are also explained in the tooltips of the input fields. Some extra features are included, such as average top and bottom calculation, standard deviation and divergences.
Color legend:
Green: RSI Above MA and Rising
Light Green: RSI Above MA and Falling
Red: RSI Below MA and Falling
Light Red: RSI Below MA and Rising
Blue: RSI Crossover MA
Orange: RSI Crossunder MA
Blue Arrow: Bullish Divergence
Orange Arrow: Bearish Divergence
RSI Screener / Heatmap - By LeviathanThis script allows you to quickly scan the market by displaying the RSI values of up to 280 tickers at once and visualizing them in an easy-to-understand format using labels with heatmap coloring.
📊 Source
The script can display the RSI from a custom timeframe (MTF) and custom length for the following data:
- Price
- OBV (On Balance Volume)
- Open Interest (for crypto tickers)
📋 Ticker Selection
This script uses a different approach for selecting tickers. Instead of inputting them one by one via input.symbol(), you can now copy-paste or edit a list of tickers in the text area window. This approach allows users to easily exchange ticker lists between each other and, for example, create multiple lists of tickers by sector, market cap, etc., and easily input them into the script. Full credit to @allanster for his functions for extracting tickers from the text. Users can switch between 7 groups of 40 tickers each, totaling 280 tickers.
🖥️ Display Types
- Screener with Labels: Each ticker has its own color-coded label located at its RSI value.
- Group Average RSI: A standard RSI plot that displays the average RSI of all tickers in the group.
- RSI Heatmap (coming soon): Color-coded rows displaying current and historical values of tickers.
- RSI Divergence Heatmap (coming soon): Color-coded rows displaying current and historical regular/hidden bullish/bearish divergences for tickers.
🎨 Appearance
Appearance is fully customizable via user inputs, allowing you to change heatmap/gradient colors, zone coloring, and more.
Relative Strength Universal
Relative strength is a ratio between two assets, generally it is a stock and a market average (index). RS implementation details are explained here .
This script automatically decides benchmark index for RS calculation based on market cap input values and input benchmark indices values.
Relative strength calculation:
"To calculate the relative strength of a particular stock, divide the percentage change over some time period by the percentage change of a particular index over the same time period". This indicator value oscillates around zero. If the value is greater than zero, the investment has been relatively strong during the selected period; if the value is less than zero, the investment has been relatively weak.
In this script, You can input market cap values and all are editable fields. If company market cap value is grater than 75000(Default value) then stock value will be compared with Nifty index. If company market cap is between 75000 and 25000 then stock value will be compared with midcap 150 to calculate RS. If marketcap is greater than 5000 and less than 25000 then RS will be calculated based on smallcap250. If marketcap is less than 5000 and greater than 500 then it will be compared with NIFTY_MICROCAP250
RSI AcceleratorThe Relative Strength Index (RSI) is like a fitness tracker for the underlying time series. It measures how overbought or oversold an asset is, which is kinda like saying how tired or energized it is.
When the RSI goes too high, it suggests the asset might be tired and due for a rest, so it could be a sign it's gonna drop. On the flip side, when the RSI goes too low, it's like the asset is pumped up and ready to go, so it might be a sign it's gonna bounce back up. Basically, it helps traders figure out if a stock is worn out or revved up, which can be handy for making decisions about buying or selling.
The RSI Accelerator takes the difference between a short-term RSI(5) and a longer-term RSI(14) to detect short-term movements. When the short-term RSI rises more than the long-term RSI, it typically refers to a short-term upside acceleration.
The conditions of the signals through the RSI Accelerator are as follows:
* A bullish signal is generated whenever the Accelerator surpasses -20 after having been below it.
* A bearish signal is generated whenever the Accelerator breaks 20 after having been above it.
RSI Overbought/Oversold [Overlay Highlighter]Indicator to show when the RSI is in oversold(Below 30) or overbought (Above 70) conditions. The background color of the chart changes colors in the areas where the above conditions are met.
Price can often reverse in these areas. However, this depends on the strength of the trend and price may continue higher or lower in the direction of the overall trend.
Divergence has been added to aid the user in timing reversals. Divergences are plotted by circles above or below the candles. Divergence is confirmed so there is a delay of one candle before the signal is given on the previous candle. Again, everything depends on the strength of the trend so use proper risk management.
Once the RSI has entered into oversold/overbought conditions, it is recommended to wait for divergence before entering into the trade near areas of support or resistance. It is recommended to utilize this strategy on the H4 timeframe, however, this particular strategy works on all timeframes.
This indicator is a modified version of seoco's RSI Overbought/Oversold + Divergence Indicator . The user interface has been refined, is now overlayed on the chart, and my own divergence code has been inserted.
UT Bot Stochastic RSIUT Bot Stochastic RSI is a powerful trading tool designed to help traders identify potential buy and sell signals in the market. This indicator combines the Stochastic and RSI (Relative Strength Index) oscillators, two of the most popular and effective technical analysis tools, to provide a comprehensive view of market conditions.
The Stochastic oscillator is a momentum indicator that compares a security's closing price to its price range over a given time period. The RSI, on the other hand, is a momentum oscillator that measures the speed and change of price movements. By combining these two indicators, the UT Bot Stochastic RSI can help traders identify overbought and oversold conditions, as well as potential trend reversals.
The UT Bot Stochastic RSI also includes an ATR (Average True Range) trailing stop, which can be used to set stop-loss levels and manage risk. This feature is particularly useful in volatile markets, where price movements can be large and unpredictable.
In addition to its powerful technical analysis tools, the UT Bot Stochastic RSI also includes a backtesting feature, allowing traders to test their strategies on historical data. This can help traders identify the most effective settings for the indicator and improve their trading performance.
Overall, the UT Bot Stochastic RSI is a versatile and effective tool for traders of all levels, providing valuable insights into market conditions and helping to improve trading decisions
Relative Strength Overlay [BackQuant]Relative Strength Overlay
Relative Strength Overlay is a new innovative proprietary adaptive calculation to get an assets relative strength. To ensure this is well put together and easy for traders to use we have made it into an overlay. Allowing traders and investors to spot clear trends in both the up and down directions. Providing clear signals, and an option for a gradient to allow users to screen assets with strong relative strength and potentially define a trading period.
Please take the time to read the following.
Importance and Concepts
1. Adaptive Relative Strength Calculation:
At the heart of this indicator lies an adaptive relative strength calculation, a pivotal concept that goes beyond the traditional RSI (Relative Strength Index) by dynamically adjusting its sensitivity based on recent price action. This adaptability ensures that the indicator is more responsive to current market conditions, enhancing its effectiveness in signaling potential reversals or continuations.
2. Volatility and Price Action Adaptivity:
Incorporating an adaptive approach to both volatility and price action, the indicator refines its signals to reflect the current market environment more accurately. This adaptability is achieved through a custom calculation that considers the volatility (using ATR - Average True Range) and price action (through DEMA - Double Exponential Moving Average), ensuring that the indicator remains sensitive to sudden changes in market dynamics.
3. DEMA Utilization:
The use of DEMA provides a price-adaptive mechanism that smoothens the indicator's output, making it more reliable during volatile periods. DEMA helps in reducing the lag associated with traditional moving averages, offering a quicker response to price changes and enhancing the adaptive nature of the relative strength calculation.
Main Features and Trading Applications
Comprehensive UI Settings:
The indicator comes with extensive user interface settings, allowing traders to customize various parameters according to their trading preferences. These settings include adjustment options for calculation periods, standard deviation factors, and the ability to toggle features like volatility bands and signal lines on or off.
Volatility-Adjusted Bands:
Utilizing a custom ATR calculation, the indicator plots volatility bands that adjust according to current market volatility. These bands serve as dynamic support and resistance levels, providing traders with potential entry and exit points based on the confluence of relative strength signals and band breaches.
Calibrated Trading Conditions:
The indicator features pre-modeled long and short conditions that have been backtested to ensure robustness. These conditions help in identifying high-probability trading setups, making the indicator a valuable tool for both discretionary and systematic traders, mainly looking to either define a trading period, or capture clear trends in confluence with other metrics.
Trading Range Identification:
By filtering assets based on their relative strength, traders can use the indicator to identify securities with strong momentum. This feature is particularly useful for portfolio selection and asset screening, allowing traders to focus on the most promising opportunities.
Gradient Background Hue:
The indicator offers a unique visual aid in the form of a gradient background hue, which assists in quickly screening assets based on their relative strength. This color-coding feature aids in identifying potential reversals as it highlights changes in the strength's direction.
Adaptive Volatility Bands with Standard Deviations:
The inclusion of three sets of volatility bands, each corresponding to different standard deviations, provides a probabilistic view of price movements. These bands adapt to current market volatility, offering traders insights into the likelihood of price staying within certain ranges. This goes up to +-3 Standard Deviations.
Alert Conditions and Signal Visualization:
With built-in alert conditions for long and short signals, along with the ability to paint candles according to the prevailing trend, traders can stay informed about significant market movements. This feature enhances the decision-making process by visually representing the strength and direction of the trend.
alertcondition(ta.crossover(BackQuant, 0), title="Positive RS", message="Positive RS {{exchange}}:{{ticker}}")
alertcondition(ta.crossunder(BackQuant, 0), title="Negative RS", message="Negative RS {{exchange}}:{{ticker}}")
Concluding Remarks.
In conclusion our Relative Strength Overlay indicator is a comprehensive tool that leverages adaptive calculations and volatility adjustments to provide traders with nuanced insights into market conditions. By combining traditional concepts with innovative features, this indicator offers a versatile solution for traders seeking to enhance their market analysis and identify high-probability trading opportunities.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD