An indicator in a separate pane that builds a 0 to 100 gauge of market risk from several other markets rather than the chart symbol: an equity ETF, the VIX, the dollar index, the 10-year yield and a high-yield credit ETF.
Their returns or changes are turned into z-scores, weighted, smoothed and ranked against history. Risk-off and risk-on levels use hysteresis, and a shock flag marks sudden jumps. Symbols, weights and timeframe are inputs.
Gauge from equities, VIX, dollar, yields and credit
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Equity index
symbol
AMEX:SPY
eqSym
Volatility index
symbol
TVC:VIX
vixSym
Dollar index
symbol
TVC:DXY
dxySym
10Y yield
symbol
TVC:US10Y
rateSym
High-yield credit ETF
symbol
AMEX:HYG
crSym
Use chart timeframe for macro data
bool
true
useChartTF
Macro timeframe (if not chart TF)
timeframe
D
macroTF
Equity return
float
-1.0
wEq
VIX change
float
1.5
wVix
Dollar change
float
0.5
wDxy
Yield change
float
0.5
wRate
HY credit return
float
-1.0
wCr
Show all 21 settings
Setting
Type
Default
Variable
Return window (bars)
int
5
retLen
Z-score lookback
int
60
zLen
Gauge percentile lookback
int
252
rankLen
Smoothing
int
3
smoothLen
RISK OFF level (gauge)
int
70
riskOffLvl
RISK ON level (gauge)
int
30
riskOnLvl
Hysteresis (gauge points)
int
10
hystLvl
Shock threshold (score jump in 1 bar)
float
0.75
shockTh
Show components
bool
true
showComp
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 distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist
This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
This indicator plots candle range and open-to-close movement as percentages in a separate pane. Range is the high-low difference divided by the low, and change is the close-open difference divided by the open. Both series draw as columns. Teal columns show ran
The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe
Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist
MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us