Adaptive trend baseline with regime shading.
Smart Trend combines an adaptive moving baseline with a volatility filter to classify price into trending up, trending down or ranging regimes, shading the chart so the current regime is obvious.
The baseline is an exponential average whose length shortens when directional efficiency (net move ÷ total path) is high and lengthens when price chops. A regime is classed as trending only while price holds beyond the baseline by more than k × ATR.
| Setting | Default |
|---|---|
| Base length | 34 |
| ATR length | 14 |
| Regime threshold (k) | 0.5 |
Every trend filter trades responsiveness for noise. Expect late signals at turning points and whipsaws in tight ranges.
Indicators describe price data; they do not predict future prices or guarantee results. Test any tool against your own journal before relying on it.
Market Structure · v2.3
ProInternal and external structure, CHoCH and strong/weak highs and lows.
Public script — free to add to any TradingView chart.
The TradingView publication link will appear here once the script is published.