Relative Volume Indicator (RVOL)Relative Volume Indicator (RVOL) is a powerful tool designed for intraday traders who want to quickly identify key areas of interest based on relative volume activity.
This indicator compares the current candle’s volume with the historical average volume over a customizable lookback period (default is 20). It highlights when volume is:
🔴 Below average
🟡 Average
🟢 Above average
🟣 Extremely high
⚙️ Customizable Settings:
Lookback period for average volume
Volume thresholds (average, above average, extreme)
Custom colors for each volume zone
🎯 Best suited for:
Scalping strategies
Breakout confirmation
Volume-based entries at key support/resistance levels
Spotting unusual or algorithmic trading activity
📈 Works across all timeframes.
🎨 Fully customizable from the settings panel.
🔔 Alerts coming in future versions.
Cari dalam skrip untuk "Relative"
Relative StrengthRelative Strength Colored
This script plots Relative strength Compared to TSLA Index.
You can change it to your requirement .
Relative Price Strength (RPS)Relative Price Strength (RPS) is a technical analysis indicator that measures the performance of a specific symbol relative to a benchmark or "Base Symbol".
It's essentially a ratio that compares the price of the specific symbol to the price of the benchmark.
Rising RPS: Indicates that the symbol is outperforming the benchmark.
Falling RPS: Suggests that the symbol is underperforming the benchmark.
RSP is smoothed over a period for better visualization.
Relative Strength RankRelative Strength Rank Indicator
( ( Long Term Price Change + Short Term Price Change ) / 2 ) / 10 Day ATR
Relative Momentum IndexRelative Momentum Index indicator script. This indicator was originally developed by Roger Altman (Stocks & Commodities V. 11:2 (57-60)).
RMI with momentum period of 1 will be equal to an RSI when they have the same period and source price.
Relative Vigor Index with Dominant Cycle Detection (RVI)Relative Vigor Index with Dominant Cycle Detection. As Ehler's mentioned, fixed length look back is inherently flawed when it is possible to extract a length from a dominant price cycle. may be less effective if signal to noise ratio is greater than 2, but that usually would not happen at >5m candles, and honestly shouldn't be looking at RV(igor)I when price is moving sideways.
Read just like an RVGI, but adjusted to the current time frame. To reduce noise, changing to heiken ashi will help with signals as well. Let me know if there are improvements!
Made for JD, the OG.
Relative strength to Index set up as per Leaf_WestRelative Strength to index as used by Leaf_West. If you follow his methods be aware of the different moving averages for the different time periods. From Leaf_West: "on my weekly and monthly R/S charts, I include a 13 EMA of the R/S (brown dash line) and an 8 SMA of the 13 EMA (pink solid line). The indicator on the bottom of the weekly/monthly charts is an 8 period momentum indicator of the R/S line. The red horizontal line is drawn at the zero line.
For daily or 130-minute time periods (or shorter), my R/S charts are slightly different - the moving averages of the R/S line include a 20EMA (brown dash line), a 50 EMA (blue dash line) and an 8 SMA of the20 EMA (pink solid line). The momentum indicator is also slightly different from the weekly/monthly charts – here I use a 12 period calculation (vs 8 SMA period for the weekly/monthly charts)." Leaf's methods do evolve and so watch for any changes to the preferred MAs etc..
Relative Volume at TimeThe Relative Volume at Time indicator (RVOL) is a simple modification of the original Relative Volume at Time script available in TradingView’s public library. It doesn’t change how the indicator works but includes two small adjustments:
Added Color Options – The ability to customize the colors of the volume bars, which was important to me as I use this indicator all the time and wanted more visually suitable colors.
Renamed Short Title – The abbreviation "RVOL" replaces "RelVol", as it's a more commonly used term in trading.
Aside from these small tweaks, the indicator retains all of its original functionality, including the ability to set an anchor timeframe, choose between Regular and Cumulative volume calculation modes, and adjust unconfirmed volume for incomplete bars.
This version exists simply because I needed a more personalized display for an indicator that I rely on daily.
How It Works
The Relative Volume at Time indicator compares the current volume to the average volume at the same time in previous sessions. This helps determine if today’s activity is higher or lower than usual.
Examples
On a daily chart (1D timeframe, length = 10), each volume bar compares today's volume to the average volume at the same time over the last 10 days. If today’s volume is higher than usual at this moment, the bar will reflect that.
On an hourly chart (1H timeframe, length = 5), each hourly volume bar compares the current hour’s volume to the same hour in the past 5 days. If the 10 AM bar is high, it means today's 10 AM volume is greater than the average of the past 5 sessions at 10 AM.
On a weekly chart (1W timeframe, length = 8), the indicator compares this week’s volume to the average of the last 8 weeks. A higher bar means this week is seeing significantly more volume than usual.
This logic applies to any timeframe. It always compares the current volume to past volumes at the same point in time.
@Julien_Eche
Relative Strength against IndexThis is a very simple script to compare the performance of a single stock against its index, by adding / subtracting points for particular price action on up /down - days in the index.
For instance: If the index is down <-1ATR and the stock is not, it's +1 point. If the index is up >1ATR and the stock is up less than half, it's -1 point.
Basic idea (vs the commonly used "relative strength comparison") is that regular relative strength action over a time tells more about accumulaiton than pure price outperformance.
Formula can probably be made better - I'm open to suggestions...
Relative Performance between between Stock and SPXSimply plots the close to close performance of your instrument vs SPX below your main chart
Offers further SMA of EMA of such relative performance to get a better idea of the relative strength against the major market
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.
Relative Index StrengthThis script shows relative strength of custom stock compared to Index. It is helpful in detecting how strongly a stock is performing when compared to an Index.
When the index is falling but the custom stock is rising, indicator shows this in red with its relative strength compared to index, indicating the stock is moving strongly against market trend.
When the index and the custom stock are moving in same direction, indicator remains neutral, indicating the stock is aligned with the market trend.
RELATIVE STRENGTHstudy(" RELATIVE STRENGTH", shorttitle="RS")
a = tickerid
b = input("NIFTY",type=symbol)
as = security(a,period,close)
bs = security(b,period,close)
plot(as/bs, title="RS" ,color=blue)
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
Relative Performance SuiteOverview
The Relative Performance Suite (RPS) is a versatile and comprehensive indicator designed to evaluate an asset's performance relative to a benchmark. By offering multiple methods to measure performance, including Relative Performance, Alpha, and Price Ratio, this tool helps traders and investors assess asset strength, resilience, and overall behavior in different market conditions.
Key Features:
✅ Multiple Performance Measures:
Choose from various relative performance calculations, including:
Relative Performance:
Measures how much an asset has outperformed or underperformed its benchmark over a given period.
Relative Performance (Proportional):
A proportional version of relative performance,
factoring in scaling effects.
Relative Performance (MA Based):
Uses moving averages to smooth performance fluctuations.
Alpha:
A measure of an asset’s performance relative to what would be expected based on its beta and the benchmark’s return. It represents the excess return above the risk-free rate after adjusting for market risk.
Price Ratio:
Compares asset prices directly to determine relative value over time.
✅ Customizable Moving Averages:
Apply different moving average types (SMA, EMA, SMMA, WMA, VWMA) to smooth price inputs and refine calculations.
✅ Beta Calculation:
Includes a Beta measure used in Alpha calculation, which users can toggle the visibility of helping users understand an asset's sensitivity to market movements.
✅ Risk-Free Rate Adjustment:
Incorporate risk-free rates (e.g., US Treasury yields, Fed Funds Rate) for a more accurate calculation of Alpha.
✅ Logarithmic Returns Option:
Users can switch between standard returns and log returns for more refined performance analysis.
✅ Dynamic Color Coding:
Identify outperformance or underperformance with intuitive color coding.
Option to color bars based on relative strength, making chart analysis easier.
✅ Customizable Tables for Data Display:
Overview table summarizing key metrics.
Explanation table offering insights into how values are derived.
How to Use:
Select a Benchmark: Choose a comparison symbol (e.g., TOTAL or SPX ).
Pick a Performance Metric: Use different modes to analyze relative performance.
Customize Calculation Methods: Adjust moving averages, timeframes, and log returns based on preference.
Interpret the Colors & Tables: Utilize the dynamic coloring and tables to quickly assess market conditions.
Ideal For:
Traders looking to compare individual asset performance against an index or benchmark.
Investors analyzing Alpha & Beta to understand risk-adjusted returns.
Market analysts who want a visually intuitive and data-rich performance tracking tool.
This indicator provides a powerful and flexible way to track relative asset strength, helping users make more informed trading decisions.
Relative StrengthRelative strength is a ratio between two assets, most often a stock and a market average (index). This implementation uses the method described here and the second method described here to calculate its value: "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 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. The period and the comparative symbol can be set in the settings for the indicator (the defaults are 50 and SPX), there you can also find an option to turn on a moving average.
Relative StrengthRelative strength is a calculation of the price trend of a stock or a financial instrument in comparison to another instrument, stock, or industry. It shall be determined by taking the price of one commodity and dividing it by another.
Relative strength is a strategy used for determining value stocks and is used in momentum investing as well. It involves investing in stocks that have done well, in relation to their index or benchmark. For example, a relative strength investor might pick technology companies that have outperformed the Nasdaq Composite Index or large-cap stocks that are lagging against the S&P 500 index(Adjustable in the settings).
This indiator will give you a plot for relative strength between the current pair with another pair (adjustable in the settings), with a plotshape for RSNHBP & RSNH
Features :
1. Relative Strength
2. Double EMA of Relative Strength
3. RSNHBP & RSNH
How to use it :
1. Adjust All the settings parameter
2. For Alerting, Just use any alert function call, it will give you an alert of RSNHBP and RSNH
Relative Strength (IBD Style)This script is meant to give you a Relative Strength indication of the stock. The goal is to use a similar calculation as used by IBD.
It calculates the performance of the current stock for the last year (most recent quarter is weighted double) and compares it to the performance of a reference index or ticker (default is "SPY").
IBD would give you a value between 0 and 100 because this value is the percentile within all stocks. This is not possible with Pine Script at the moment.
So here you get a Relative Strength value that is >0 if the stock is stronger than the index and <0 if it is weaker than the index.
You can still compare the Relative Strength values between stocks (bigger is better) but you won't know which percentile it is right off the bat.
Relative Strength Auto ComparisonRelative Strength Comparison with automatic selection of relevant index
Added support for most european and north american exchanges.
Relative Performance Indicator by ComLucro - 2025_V01The "Relative Performance Indicator by ComLucro - 2025_V01" is a powerful tool designed to analyze an asset's performance relative to a benchmark index over multiple timeframes. This indicator provides traders with a clear view of how their chosen asset compares to a market index in short, medium, and long-term periods.
Key Features:
Customizable Lookback Periods: Analyze performance across three adjustable periods (default: 20, 50, and 200 bars).
Relative Performance Analysis: Calculate and visualize the difference in percentage performance between the asset and the benchmark index.
Dynamic Summary Label: Displays a detailed breakdown of the asset's and index's performance for the latest bar.
User-Friendly Interface: Includes customizable colors and display options for clear visualization.
How It Works:
The script fetches closing prices of both the asset and a benchmark index.
It calculates percentage changes over the selected lookback periods.
The indicator then computes the relative performance difference between the asset and the index, plotting it on the chart for easy trend analysis.
Who Is This For?:
Traders and investors who want to compare an asset’s performance against a benchmark index.
Those looking to identify trends and deviations between an asset and the broader market.
Disclaimer:
This tool is for educational purposes only and does not constitute financial or trading advice. Always use it alongside proper risk management strategies and backtest thoroughly before applying it to live trading.
Chart Recommendation:
Use this script on clean charts for better clarity. Combine it with other technical indicators like moving averages or trendlines to enhance your analysis. Ensure you adjust the lookback periods to match your trading style and the timeframe of your analysis.
Additional Notes:
For optimal performance, ensure the benchmark index's data is available on your TradingView subscription. The script uses fallback mechanisms to avoid interruptions when index data is unavailable. Always validate the settings and test them to suit your trading strategy.
Short & Long Relative StrengthRelative Strength (RS) is a method of identifying stocks which are relatively stronger or weaker as compared the market as a whole or to a relevant benchmark.
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.
The value of RS Indicator oscillates around zero. If value of RS is above ZERO then security is outperforming the benchmark and if value of RS is below ZERO then security is outperforming the benchmark.
Here i have used two RS indicator lines in one indicator - Short Term RS (default value is 65) and Long Term RS (default value is 123).
I have set default benchmark index as Nifty 50 (NSE:NIFTY)
Relative Spread StrengthRelative Spread Strength indicator script. This indicator was originally developed by Ian Copsey (Stocks & Commodities V. 24:10 (16-23): Forex Focus).
Relative Strength LevyDescription:
The concept of Relative Strength to Levy is based on the assumption that, securities which exhibited a large relative strength in the past will also develop relatively strongly in future, and conversely.
It is compare on the performance of the past with the performance of last observation period.
Calculation:
Arithmetic mean of the candle closing price over the observation period.
The result is plotted around the 1.0 mark.
RSL = Close / Moving Average
Interpretation:
If an instrument has an RSL of greater than 1, it is more likely than not, the instrument is more than weak in the past.
Second interpretation of Levy is to first divide the standard deviations of the last 27 weekly closing prices. The intention of this method is to determine the volatility of the securities being observed.