ADX Trend Filter
DMI/ADX in one pane: ADX above the threshold means there is a trend worth following; +DI over −DI tells you its direction. Handy as a filter for other strategies.
Product
ProductCharts, drawings, layouts and alerts in one workspace.BacktestingBar-by-bar tests that can't see the future.Deepwick ScriptRuns a subset of Pine Script.MarketsWhat you can chart today, and what comes next.Get started freeFree account with an email link. No password.Community
Community scriptsIndicators and strategies other traders published.ExploreIdeas, scripts and backtests people share.Find tradersProfiles of the traders behind the scripts.Resources
BlogGuides on charting and backtesting.Script referenceEvery function the script engine supports.FAQPlans, data, privacy and how things work.DevelopersREST API, webhooks and tokens.SupportAsk a question or report a problem.StatusLive health of the data feeds and the app.Community
Bounded indicators that swing between levels to flag overbought and oversold conditions. 67 scripts written in Deepwick Script, a subset of Pine Script.
67 public scripts
DMI/ADX in one pane: ADX above the threshold means there is a trend worth following; +DI over −DI tells you its direction. Handy as a filter for other strategies.
RSI with regular divergences marked on the oscillator: price makes a lower low while RSI makes a higher low (bullish), or the opposite (bearish). Pivots are confirmed right bars later, so signals never repaint — they just arrive a few bars after the turn.
Trend Quality Index (TQI) — |close − SMA| divided by the standard deviation of close. Higher = price is far from its own mean (trending / stretched); lower = price is hugging the mean (ranging). - Use 1.5 as the 'overextended' stall to fade; 0.5 as the 'ranging' stall to breakout-trade.
Market Phase Detector — bins the market into 3 regimes using ADX (trending vs ranging) and MACD histogram (bullish vs bearish): +1 = trending bullish, -1 = trending bearish, 0 = ranging. - Use to switch strategy: only trend-follow when |phase| = 1.
Trend Strength Oscillator — multiplies ADX (raw trend) by the normalised distance of RSI from 50 and the normalised distance of Stoch from 50. High = strong, directional move; low = ranging. - Use 0.3 as the threshold for 'trend active'.
Composite Buy/Sell Score — blends 5 weighted components: RSI position (25), MACD histogram sign (25), DMI bias (25), ADX trend strength (25), Stochastic position (25). Range -100 to +100. - Above +50 = strong buy bias; below -50 = strong sell bias. - Filter trades by requiring |score| 25.
Trend Score Composite — sums the directional sign of the last four close-vs-prev-close deltas and scales to ±100. +100 = four bars of strict higher closes; -100 = four bars of strict lower closes. - Filter chop by requiring |score| 50. - Built-in regime read at a glance.
Relative Momentum — rate-of-change of price minus rate-of-change of its SMA. Positive = price is accelerating faster than its own average (momentum building), negative = losing steam. - Lead reversal sign so turns at 0 are early warnings for trend changes.
Hurst Exponent — simplified log-ratio approximation of the rescaled-range statistic. Above 0.5 the series is trending (persistent), below 0.5 it's mean-reverting (anti-persistent), exactly 0.5 is a random walk. - Pair with an EMA crossover: only trade trend signals when Hurst 0.5. - Mean-reversion setups only when Hurst < 0.5.
Adaptive Stochastic RSI — feeds an adaptive-length RSI into a stochastic formula, then smooths with a 3-bar SMA. Combines Kaufman's adaptation with Connors' StochRSI. - 20/80 extremes work the same; the signals are cleaner.
Adaptive Stochastic — the %K lookback widens in chop (fewer signals) and tightens in trend (more signals), driven by the Efficiency Ratio. - Same 20/80 extremes, just better-timed.
Adaptive MACD — fast and slow EMA lengths scale with the Efficiency Ratio. Trends compress the windows for sharper crosses; chop widens them so the MACD doesn't whipsaw. - Histogram (h) flips are the signal; 0 line is the bias.
Adaptive RSI — Kaufman's Efficiency Ratio drives the RSI length. In choppy markets the RSI looks at 100 bars (almost noise); in trends it tightens to ~20 bars so it actually turns with price. - Same 30/70 extremes, but they fire more reliably than fixed-length RSI.
Ehlers Center of Gravity (simplified) — the classic CoG oscillator measures where the recent price action's centre of mass sits. Without a ta.linreg API we approximate with the difference between short and medium-rate-of-change — the same conceptual signal (short momentum vs medium momentum). - Zero-line crosses = cycle inflections. - Extremes anticipate reversals.
Ehlers BandPass Filter — a 2-pole bandpass that isolates a specific cycle band in the price series. Great for cycle traders who want to see just the swing component, not the noise. - Center the passband by adjusting len (period in bars). - Buy dips near the lower envelope, sell near the upper.
Ehlers Smoothed RSI — feeds the differenced close (with a 4-bar smoothing kernel) into RSI. Strips out the slow trend before measuring relative strength, so the RSI hugs the cycle. - Cleaner than classic RSI on trending assets. - 70/30 still work as extreme zones.
Ehlers Decycle Oscillator — a fixed-coefficient FIR filter that subtracts its own 1-bar-delayed output from price. The result isolates the cycle component while removing the slow trend. - Centered around 0; zero-line crosses highlight cycle inflections. - Pairs well with ITrend for trend + cycle reads.
Ehlers Cyber Cycle — extracts the dominant market cycle with a two-pole high-pass and autoregressive smoothing. Crosses of the trigger line signal phase shifts within the cycle. - Tune alpha smaller (0.07) for longer cycles, larger (0.3) for shorter ones. - Pairs well with the Hilbert Trendline for cycle-aware entries.
Ehlers Inverse Fisher RSI — maps RSI through a hyperbolic tan so its values cluster at ±1 instead of being squished inside 30–70. The ±0.5 bands are the 'real' overbought / oversold levels. - Cleaner than raw RSI on ranging assets; great filter for mean-reversion.
Ehlers Fisher Transform — compresses price into a near-Gaussian distribution and applies a Fisher inverse so turns become sharp peaks instead of rounded ones. Excellent for spotting reversals at extremes. - Reads overbought / oversold above +1.6 / below -1.6. - Crosses of the trigger line are momentum signals.
Aroon Oscillator is Aroon Up - Aroon Down, a single-line oscillator centred on zero. Positive = uptrends have had more recent highs; negative = downtrends have had more recent lows. - Crosses of zero are clean trend-shift signals. - Magnitudes above 50 (in either direction) = strong and recent extremes.
Market Trend Strength measures how often consecutive bars move the same direction over a window, as a percentage. Above 50 = persistence, below = chop. - Values above ~60 = strong trend persistence; below ~40 = the market keeps flipping on itself. - Use to filter mean-reversion vs trend-following strategies.
Vortex Difference is +VI minus -VI — a single-line oscillator that goes positive when up-moves dominate and negative when down-moves do. - Crosses of zero are the cleanest entries. - Magnitude scales with trend strength; combined with ADX it gives a regime + direction readout.
Trend Intensity is the ratio of net move over len bars to the sum of all bar moves, expressed as a percentage. High values = clean directional trend; low values = noisy chops. - Reads above ~33 = trending, below ~15 = messy. - Use as a filter for breakout entries — only take them when intensity is rising.