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
83 lines of Pine Script v5 from Trend Strength & Volatility.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Trend Strength & Volatility measures short-term and long-term trend strength via two MACD configurations built on three customizable EMA lengths. It also calculates a Sharpe ratio based on rate of change standard deviation, alongside ATR percentage distances derived from Keltner Channels. The results are formatted in a bottom-left dashboard table overlay.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA 1
int
21
ema1Length
EMA 2
int
55
ema2Length
EMA 3
int
100
ema3Length
Lookback Length
int
365
lookbackLength
Standard Deviation Multiplier
float
1
stdevMultiplier
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 plots a zero-lag EMA center line with ATR bands on the price chart. It marks bullish or bearish mode after closes stay beyond a band for a set number of bars and the center line slopes that way. Confirmed buy and sell labels appear only after th
This indicator tracks crypto trend reversals by combining the Williams Alligator with an ATR stop level and a higher-timeframe market filter. Long signals trigger when the Lips line crosses above the Jaw line while Bitcoin trades above its daily 200-period sim
Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t
Quick Stats displays key trading metrics directly on the price chart overlay. It calculates Mark Minervini's Trend Template rules by scoring moving average alignments (50, 150, and 200 SMAs), 200 SMA slope, and 52-week high/low proximities. Additionally, it co
Calculates a Zero Lag Exponential Moving Average (ZLEMA) combined with Average True Range volatility bands to determine market trends. It plots the ZLEMA basis line, volatility bands, trend reversal labels, and entry signals directly on the price chart. Additi
This indicator draws a SPY scalping panel in a separate pane. It calculates a Supertrend side from ATR smoothed by a selectable average, defaulting to HMA, and uses three moving averages of selectable type, defaulting to EMA lengths 13, 50, and 75. Colors mark