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
By default it fetches a published score through an HTTP request; alternatively the user can type values by hand, or it falls back to a price-based proxy built from realized volatility, drawdown and downside-tail frequency with adjustable weights. A table can show VIX, DXY and M2 context, and thresholds mark elevated and risk-off zones. Designed for daily charts, mainly Bitcoin.
0 to 100 stress score in a separate pane
Price-based proxy from volatility, drawdown and tail days
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Realized-vol window (days)
int
30
rvol_len
Vol floor (annualized)
float
0.20
vol_floor
Vol ceiling (annualized)
float
1.40
vol_ceil
Drawdown lookback (days)
int
120
dd_len
Drawdown mapped to 100 (0.40 = -40%)
float
0.40
dd_map
Downside-tail window (days)
int
30
tail_len
Tail threshold (daily ret, -0.05)
float
-0.05
tail_thr
Tail freq mapped to 100 (0.30 = 30% days)
float
0.30
tail_map
Weight realized-vol
float
0.35
w_rvol
Weight drawdown
float
0.40
w_dd
Weight downside-tail
float
0.25
w_down
Use LIVE SFC score (auto-fetch)
bool
true
use_auto
Show all 22 settings
Setting
Type
Default
Variable
Use MANUAL SFC score (instead of auto)
bool
false
use_manual
sfc_effective (manual, 0-100)
float
20.5
man_sfc
sfc_base (manual, 0-100)
float
20.5
man_base
news_stress (manual, 0-100)
float
5.0
man_news
Show macro context in table (VIX/DXY/M2)
bool
true
show_macro
VIX symbol
symbol
TVC:VIX
vix_sym
DXY symbol
symbol
TVC:DXY
dxy_sym
M2 symbol
symbol
FRED:M2SL
m2_sym
Risk-OFF when stress >= (0-100)
float
50.0
risk_off_thr
Elevated zone starts at
float
25.0
elevated_thr
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 scans a pasted list of symbols and shows matching long and short setups in a table in a separate pane. It uses a Supertrend crossover, then applies an ATR or fixed-point volatility range so quiet, sideways conditions can be skipped. Optional fil
This statistical analysis tool mines historical relationships between RSI values and candle volatility. It calculates a 14-period RSI from the previous bar and normalizes absolute price change using a 14-period Average True Range (ATR). Based on the normalized
Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and
The 8-Factor Composite Screener evaluates equities across fundamental and technical criteria, including valuation ratios, earnings and revenue growth, 12-month return momentum, proximity to 52-week highs, Stage 2 moving average alignment, benchmark relative st
This indicator summarizes higher-timeframe candle range statistics by time of day and shows them in a table in a separate pane. It groups candles into slots for 5-minute, 15-minute, 1-hour, 4-hour, 8-hour, or 12-hour periods over a chosen lookback in days, and
This indicator transforms standard RSI calculations into logit space, estimating rolling distributions to derive empirical z-scores mapped back to the 0–100 RSI scale. Plotted in a separate pane, it features multi-horizon central lines—fast and structural cent