1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
126 lines of Pine Script v5 from Tradingview/csw-mtf-sentiment-line.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Traded assets can be measured using RSI, volatility (RSI of price standard deviation), or volume (RSI of volume moving average), with values normalized on a 0 to 100 scale. Visual scale lines and labels are projected to the right of current bars. Higher-timeframe calculations use lookahead mode, causing historical values to repaint.
Multi-timeframe sentiment tracking across five timeframes
Selectable calculation types for RSI, volatility, or volume
Customizable visual offsets and gradient color themes
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Instructions
bool
false
instructions
Type
string
RSI
type
Length
int
14
length
Timeframe 1
timeframe
tf1
Timeframe 2
timeframe
60
tf2
Timeframe 3
timeframe
240
tf3
Timeframe 4
timeframe
D
tf4
Timeframe 5
timeframe
W
tf5
Bull Color
color
color.new(#27a69b,30)
color_up
Bear Color
color
color.new(#b63632,30)
color_down
Label Color
color
#ffffff
label_color
Line Offset
int
150
offset
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator calculates the Relative Strength Index (RSI) alongside a simple moving average to generate directional momentum signals in a separate pane. It supports Break Flip and Break Continuous scanning modes for long and short setups. A wide array of opt
DEPV2 is a multi-symbol crypto indicator that generates trading signals across 20 Binance assets including BTC, ETH, and SOL. It analyzes four method classes—trend, momentum, volatility, and volume—using modes such as simultaneous confirmation requiring at lea
This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab