Directional Kernel Filter [BackQuant] is a Pine Script v6 trend-following indicator that overlays fast and slow Gaussian kernel regressions on the price chart.
Directional Kernel Filter [BackQuant] weights historical price observations by both temporal proximity and alignment with prior ATR-normalized directional movement. Users can adjust the fast and slow kernel lengths, bandwidth, directional weighting strength, and ATR normalization length, as well as customize colors, line width, trend ribbons, base kernel lines, candle coloring, and background shading. Because it relies on the live source price (close by default), its current bar output updates until the bar closes.
Fast and slow directional Gaussian kernel filters
ATR-normalized directional price weighting
Adjustable kernel bandwidth and directional strength
Optional trend ribbon and base kernel line plotting
Optional trend-based candle and background coloring
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
src
Fast Kernel Length
int
18
fastLen
Slow
int
35
slowLen
Kernel Width
float
0.35
kernelWidth
Directional Weight
float
3.5
directionStrength
Normalization Length
int
14
normLen
Long Color
color
GREEN
longCol
Short Color
color
RED
shortCol
Line Width
int
3
lineW
Show Trend Ribbon?
bool
true
showRibbon
Show Base Kernel?
bool
false
showBase
Paint Candles to Trend?
bool
false
paintCandles
Show all 13 settings
Setting
Type
Default
Variable
Background Color?
bool
false
bgCol
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 Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab
This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre
Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba
This indicator computes moving average and RSI bias signals across the current timeframe and four higher timeframes. It sums biases from the MA and RSI to derive an overall bullish or bearish signal. The results appear in a configurable table that displays eac