OPEN-SOURCE SCRIPT

RedK DualTF Volume-Accelerated RSI (RedK_VARSI)

3 503
█ RedK_VARSI — Release Notes

The idea behind RedK Dual Timeframe Volume-Accelerated RSI (RedK_VARSI) is to enable traders to impose volume impact on the widely used RSI (Relative Strength Index) indicator - for improved "combined price action + volume" analysis - and then to visualize the resulting insight from 2 different timeframes simultaneously; the current (chart's) timeframe, and a higher timeframe (the Context timeframe) of their choice.

This analysis approach enables traders to effectively scan for opportunities, and make trading decisions that are in the direction of the broader market "context", without leaving the chart.

Two quick notes here:
---------------------------

  1. Dual Timeframe RSI trading strategy is a very common technique among traders - used with various instruments (Futures, crypto, FOREX, stocks...) and various trading styles (scalp, swing, trend...) - What RedK_VARSI does is to provide an effective tool to enable traders to easily work their dual timeframe RSI analysis, in one chart, while also taking volume impact into consideration.
  2. RedK_VARSI is the modern sibling of an indicator I created back in 2020, the RedK Volume-Weighted RSI . The basic concept is the same, but there are features that could only be implemented with the more recent versions of Pine, like pulling true higher (context) timeframe volume-weighted RSI series, adding advanced visualization, dynamically enable and disable settings ...among other features. It's exciting to see what we can now achieve with the advancements in Pine compared to what was possible back then.



█ Reading VARSI - Indicator visual elements

cuplikan

RedK_VARSI plots a volume-weighted RSI for the current chart timeframe (plotted as a blue/orange line), alongside a second VARSI read from a higher Context timeframe (plotted as green/red area backdrop). The main indicator panel is set as a 0 - 100 oscillator - same as the classic RSI.
When the two plots agree in direction from the midline, that means there's a momentum alignment across the two timeframes. When the two VARSI plots disagree, that possibly means the market is in transition - and the risk is higher - we should wait for a better setup.
(Throughout the settings and these notes, "Context" and "higher timeframe" mean the same thing)

Key indicator elements:
  • Current TF volume-weighted RSI (VARSI), with a selectable moving-average method.
  • Optional smoothing of the main RSI line, with its own selectable MA method.
  • A signal line for the current VARSI.
  • Context TF volume-weighted RSI — the same calculation on a higher timeframe, derived as a multiple of the current chart's timeframe.
  • Alignment Markers: will show (if enabled) when the current and Context VARSI agree on direction.
  • Single-timeframe mode — turn the Context off entirely and use VARSI as a straight, volume-weighted RSI - or turn volume-weighting off, and use RedK_VARSI as a regular RSI (see below settings in details).
  • Other elements: similar to the classic RSI, there's overbought & oversold levels (70 and 30 respectively) and a midline (at 50).



█ Indicator Settings & Usage
cuplikan

RedK_VARSI reads like a standard RSI. The 0–100 scale and the 50 midline work exactly as you'd expect, so everything you already know about reading the classic RSI still applies.

  • Volume weighting is the core idea: each bar's price change is weighted by that bar's volume before averaging, so moves on strong participation count for more than moves on thin volume. On symbols with no volume data, VARSI automatically falls back to a standard (unweighted) RSI, so it always works.
  • Optional smoothing lets you take noise out of the main plot with a short moving average of your choice. Keep it small — smoothing always trades responsiveness for a cleaner line. Set it to 1 to switch it off.
  • The Context timeframe is set as a multiplier of the current chart. For example, on a 1-hour chart a multiplier of 5 gives you a ~5-hour Context read. This is the modern, correct version of what I used to approximate with a length multiplier ("sentiment") in the old version.
  • Context Update — Live vs Last Closed Bar. By default the Context TF VARSI updates live as the higher-timeframe bar develops. This is the most responsive behavior. If you prefer a steadier line that only changes when the higher-timeframe bar closes, switch to "Last Closed Bar."
  • Alignment markers print when the current VARSI and the Context VARSI plots are on the same side of the midline — both bullish or both bearish. These are the moments when short-term momentum and the broader price momentum agree.
  • Single-timeframe mode: If you just want a clean, volume-weighted RSI without a second timeframe, turn off "Show Context RSI." That hides the Context plot, its shading, and the alignment markers, leaving you a straightforward single-timeframe RSI with all the volume-weighting, smoothing, and signal-line features intact. The alerts work the same either way.


Setting RedK_VARSI to match TradingView's built-in RSI
Set Length = 14, Averaging = RMA, Smoothing = 1, and Volume Weighted = off — VARSI will match a classic RSI. Disable the Context TF to remove the higher TF area plot.

cuplikan


█ Using VARSI to analyze price action
(for more details, search online for "Dual Timeframe RSI trading strategy")

  • High-gain/lower-risk trade opportunities can be found (both to the upside or the downside) when the current timeframe momentum aligns with the broader timeframe.
  • VARSI can help you locate opportunities where the higher timeframe momentum gives a bullish reading, while the current (shorter) timeframe retraces within the bullish alignment - this works like catching the waves in an ongoing current. Opportunities to the downside (short) would be worked in a similar way in during a bearish alignment.
  • Both the alignment markers and the signal line will provide the clues the trader needs to find these entry/re-entry setups - which a single timeframe RSI will not provide as effectively.


This screenshot shows examples of how to use VARSI to find possible bullish side setups

cuplikan


█ Using Alerts in RedK-VARSI

RedK_VARSI introduces five alerts - to use the alerts, right-click on any indicator element, and choose the first shortcut menu command "Add alert on RedK_VARSI..." and choose one of the 5 alerts from the dropdown. See the screenshot below for the steps.

  1. VARSI crosses above the midline (bullish)
  2. VARSI crosses below the midline (bearish)
  3. VARSI swings around the midline (either direction — one alert for both)
  4. VARSI enters the overbought zone
  5. VARSI enters the oversold zone


cuplikan

==================================================================================
📝 Notes on Use and Limitations
==================================================================================

  • Volume data: if the symbol has no volume feed, VARSI automatically falls back to an unweighted (standard) RSI calculation.
  • Context multiplier and available history: at very large multipliers the resulting Context timeframe may exceed the history available for some symbols, in which case the Context TF plot won't show. That's a data-availability limit, not an error.
  • Debug option: an optional Debug checkbox shows the resolved Context timeframe in the Data Window (split into minutes, hours, or days) — handy for confirming exactly which timeframe the multiplier landed on.
  • This is an insight tool, not a signal service. The markers and alerts describe price action readings. They are not advice to enter or exit any position, and the indicator does not claim predictive accuracy.


==================================================================================
⚠️ Important Notes & Disclaimer
==================================================================================
Using this indicator means you have read and agreed to the following:

  • Not Advice. This indicator, and other work of this author, represent analytical studies of price and volume behavior. No parts should be considered buy/sell recommendations or signals — “Bulls” and “Bears” describe measured states only. Nothing here is financial, investment, or trading advice.
  • Risk & Responsibility. Trading involves substantial risk of loss and is not for everyone. All decisions, interpretation, and risk and money management are yours alone. Past behavior does not predict future results. The author accepts no liability for any loss or consequence arising from use of this tool.
  • Indicator Provided As-Is. Feature requests are welcome and can be shared with the author, but whether or when any request is implemented cannot be promised or guaranteed.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.