This indicator reconstructs multi-color candle trend states by combining fast and slow exponential moving averages, ATR-normalized returns, RSI, Bollinger Bands, and volume Z-scores.
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
Smart Candles — Behavioral Reconstruction uses adaptive scoring and hysteresis thresholds to differentiate between strong trends, transitions, consolidations, and potential trim states. Users can toggle moving average overlays, Bollinger Bands, transition markers, and an optional higher-timeframe benchmark filter. The indicator draws directly on the price chart.
Multi-color candle trend-state classification
ATR-normalized price and trend metrics
Adaptive scoring system with hysteresis
Optional broad-market benchmark integration
Overlay settings for Bollinger Bands and moving averages
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA
int
9
fastLen
Slow EMA
int
34
slowLen
RSI length
int
14
rsiLen
ATR length
int
14
atrLen
Bollinger length
int
20
bbLen
Bollinger deviation
float
2.0
bbMult
Adaptive lookback
int
80
adaptLen
Score smoothing
int
3
scoreSmooth
Entry sensitivity
float
0.85
sensitivity
Minimum entry threshold
float
0.30
minEntry
Continuation hold ratio
float
0.18
holdRatio
Minimum bull run before trim
int
4
trimBars
Show all 19 settings
Setting
Type
Default
Variable
Use benchmark regime
bool
false
useBenchmark
Benchmark
symbol
AMEX:SPY
benchmark
Benchmark weight
float
0.10
benchmarkWeight
Colour confirmed bars only
bool
true
confirmedOnly
Show Bollinger Bands
bool
true
showBands
Show moving averages
bool
true
showAverages
Show transition markers
bool
false
showSignals
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.
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
An overlay indicator that combines an ATR-based SuperTrend trailing stop with an integrated RSI-derived midline calculation on the price chart. The SuperTrend uses an ATR period and factor multiplier to plot dynamic green or red trend lines based on price dire
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
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas