1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Each histogram bin reflects the summed weights of members within that percentage return bracket. The script renders vertical reference lines for the overall index return, constituent weighted mean, and average gainers or decliners, while labeling top individual members and displaying a stats table. Settings allow customization of the index, member count, return window, and histogram boundaries. Constituent weights are hardcoded.
Weighted constituent return histogram
Predefined baskets for NDX, SPX, DJIA, and RUT
Configurable return windows for daily, session, or multi-day lookbacks
Reference lines for index return, weighted mean, and gainers or decliners
Summary statistics table and individual member labels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Index
string
NDX
idxChoice
Tracked Members
int
15
nTrack
Move Window
string
Day
windowMode
N (lookback days)
int
20
nDays
X-axis Min (%)
float
-5.0
xMin
X-axis Max (%)
float
5.0
xMax
Bin Width (%)
float
0.5
binWidth
Show Reference Lines
bool
true
showVerticals
Show Member Labels
bool
true
showLabels
# of Members to Label (by weight)
int
8
labelTopN
Show Stats Table
bool
true
showStats
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 measures the chart symbol’s percentage change from the opening price at the start of each US presidential term and plots those values as histogram columns in a separate pane. Columns are offset so each administration appears separately, with a s
This indicator scans a pasted list of symbols for RSI directional momentum and shows matching long and short signals in a table in a separate pane. The user chooses continuous break, continuous retracement, flip break, flip retracement, divergence, or hidden d
This indicator builds a TradingView table in a separate pane and fills its cells with fixed placeholder text according to whether each row and column index is even or odd. Users set the table position, the number of rows and columns, and the background, frame,
Donald SPX - Options Trading is an indicator designed to assist SPX index option traders by tracking session benchmarks and multi-timeframe moving average data. It calculates a 200-period weighted moving average (WMA) and requests multi-timeframe bar data from
KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev
Calculates normalized reversal metrics across up to ten Forex currency pairs using user-selected moving average methods, including HarmonicMA, EMA, SMA, or WMA. The indicator identifies overbought, oversold, and mean-crossing conditions using a configurable th