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
32 lines of Pine Script v5 from BodyMassIndicator.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Body Mass Indicator calculates the absolute distance between open and close prices. When enabled, it identifies bars where the body range achieves a new high over a specified lookback period or exceeds a defined multiple of the Average True Range (ATR). The script overlays directional labels and exact point values directly above or below candles on the main price chart. Settings allow traders to adjust the lookback period, toggle ATR threshold comparisons, and scale the ATR multiplier.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
5.1 Enable Body Mass Indicator
bool
true
enableBodyMass
5.2 Enable Body Mass ATR Indicator
bool
false
enableBodyATRMass
Look back periods
int
26
lookbackperiod
Number of ATRs vs body mass
int
1
noOfAtr
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 overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us
Force Bar highlights candlesticks directly on the price chart using three distinct body and range criteria: widest range (Biggest), extreme body relative to historical average (Exhaustion), and moderate body relative to historical average (Force). Colors apply
Zen Z Bars V1 analyzes bar-by-bar price action, candle range expansion, and internal bar strength (IBS). It identifies breakouts, inside and outside bars, climax candles based on range expansion factors, and tiered range multiple bars. The indicator draws brea
This indicator plots Bollinger Bands and smoothed HAMA candles on the price chart. It builds each candle from separate moving averages of open, high, low and close, using selectable EMA, SMA or WMA lengths. A simple moving average forms the band basis, and an
Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize