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
Macro VN Indices Research combines liquidity stress, curve shape, the international yield spread, and the ten-year versus policy-rate spread, then groups regimes with hysteresis. Tables report sample statistics, confidence intervals, transition counts, and calibration versus validation results. Settings change pillar weights, lookback, horizon, sample years, non-overlapping sampling, and data-quality filters. It is a research monitor, not a strategy, so it has no entries, exits, or stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Research timeframe
timeframe
1D
research_tf
Use non-overlapping outcome samples
bool
true
use_non_overlap
Reset accumulated statistics
bool
false
reset_stats
Maximum stale bars: daily sources
int
3
max_stale_daily_bars
Non-overlap phase
int
0
non_overlap_phase
Reject index scale-break windows
bool
true
filter_index_breaks
Maximum valid 1D index move (%)
float
15.0
max_index_daily_move_pct
Percentile lookback
int
756
score_lb
Risk smoothing EMA
int
5
risk_smooth_len
Bucket hysteresis (risk points)
float
3.0
hysteresis_pts
Minimum available pillars
int
3
min_pillars
Minimum valid weight coverage
float
0.70
min_weight_coverage
Show all 40 settings
Setting
Type
Default
Variable
Dominant-pillar tail threshold
float
80.0
tail_warning_pct
Stress-breadth threshold
float
60.0
breadth_warning_pct
Pillar-dispersion warning
float
25.0
dispersion_warning
Weight: Liquidity stress
float
0.35
w_liquidity
Weight: Curve shape
float
0.30
w_curve
Weight: International spread
float
0.20
w_external
Weight: 10Y–policy spread
float
0.15
w_long_policy
Displayed horizon
int
20
analysis_horizon
Transition horizon
int
20
transition_horizon
Use log returns
bool
false
use_log_return
Winsor cap: upper return
float
0.80
ret_clip_hi
Winsor cap: lower return
float
-0.60
ret_clip_lo
Sample mode
string
Full sample
sample_mode
Start year
int
2015
sample_start_year
End year
int
2100
sample_end_year
Calibration/validation split year
int
2022
split_year
Minimum N: market
int
30
min_n_market
Minimum N: sector
int
30
min_n_sector
Minimum N: transition state origin
int
30
min_n_transition
Minimum N: transition return direction
int
20
min_n_transition_return
Minimum N: each OOS segment
int
15
min_n_oos
Minimum N: paired negative control
int
20
min_n_control
Critical |z|: market
float
1.96
z_critical_market
User critical |z|: sector
float
2.58
z_critical_sector
Sector multiple-testing control
string
Bonferroni 11
sector_multiple_testing
Economic floor: market return (%)
float
1.0
market_econ_floor_pct
Economic floor: sector relative return (%)
float
1.0
sector_econ_floor_pct
Rejection rate: caution (%)
float
10.0
rejection_caution_pct
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
Calculates and plots a weighted histogram of constituent returns for major market indices (NDX, SPX, DJIA, and RUT) in a separate pane. Each histogram bin reflects the summed weights of members within that percentage return bracket. The script renders vertical
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