Adaptive MACD
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.
Community
Indicators and strategies written in Deepwick Script — Pine Script v5 compatible. Add any of them to your chart in one click, fork the open-source ones, backtest them and turn their conditions into alerts.
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 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 ATR — the ATR lookback adapts via the Efficiency Ratio. ATR tightens when price is moving and widens in chop, giving a volatility measure that matches the actual swing size. - Use as a dynamic stop multiplier (e.g. 2 × adaptive ATR).
Adaptive Bollinger Bands — the SMA length adapts via the Efficiency Ratio. Bands squeeze tighter in trends (catch the breakout) and widen in chop (avoid false breakouts). - Mean-reversion trade at the opposite band; trend trade on a close outside.
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 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.
Arnaud Legoux Moving Average (ALMA) is a Gaussian-weighted moving average with a tunable offset and sigma. With the default 0.85 offset the kernel weights the recent half of the window, giving low lag and very little noise. - Move Offset (0.85) closer to 0 for symmetric smoothing, toward 1 for peakier recent weights. - Lower Sigma for a tighter kernel, raise it for broader smoothing. - Excellent swing line on equities and large-cap crypto.
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.
Ehlers Roofing Filter — bandpasses price through a high-pass then a low-pass; only the actionable cycle survives. Strip away trend and noise to see the pure swing. - Plot close over the filter; trade only in the direction of the filter slope.
Ehlers Reflex — the smoothed distance from the recent highest close. Highlights reflexive bounces off the rolling peak. - Drops below 0 = price lost the rolling peak; recovers above 0 = new high. - Trend filter when stacked with a 200-bar MA.
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 MESA Adaptive Moving Average (MAMA / FAMA) — the first derivative of the dominant cycle phase. MAMA tracks price, FAMA is the slower confirmation; MAMA FAMA = trend up. - alpha controls the maximum adaptation speed; smaller = more conservative. - Best on volatile instruments where standard MAs lag too much.
Ehlers Instantaneous Trendline (ITrend) — a low-lag trend line from a 3-pole IIR filter; smoother than an EMA at the same length but adapts to volatility through alpha. - Buy when price crosses above the trigger (the 2-bar-prior price projection). - The line flips direction faster than a 50-EMA.
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.
Linear Regression R-Squared measures how well price fits a straight line on a 0-1 scale. Above 0.7 = price is trending cleanly; below 0.5 = noise dominates. - Use as a trend-strength filter for any regression-based signal. - Drops below 0.5 during chop and during the early bars of a new trend — be wary. - Sustained readings above 0.7 are when trend systems make their money.
Linear Regression curve fits a straight line to the last N closes — the cleanest trend line you can draw programmatically. - Price above the line = bullish bias, below = bearish bias. - Touches of the line often act as dynamic support/resistance. - Combine two regressions of different windows for a ribbon.
Efficiency Ratio is Kaufman's ratio of net price movement to total path. 100 = perfectly straight, 0 = pure noise. - Above 30 = trending, below 30 = chop. - Raise Length for steadier readings. - Filter all your other systems by it — only take signals when ER 30.
Adaptive Laguerre Filter is John Ehlers' Laguerre-inspired cascade — four cascading IIR filters with a gamma decay factor blend into a single smooth, low-lag line. The crossover with the trigger is a popular signal. - Default gamma = 0.8 is widely used; raise toward 1 for smoother output. - Crossover of price vs Laguerre is the canonical entry signal. - Excellent on noisy intraday data and crypto perpetual futures.
Fractal Adaptive Moving Average (FRAMA) estimates the local Hurst exponent via the ratio of half-window to full-window ranges and sets an EMA smoothing constant from it. Very smooth in trends, very flat in ranges. - Use a even Length (default 16) so half/quarter ranges are integers. - Best on noisy intraday charts and on assets with frequent regime shifts. - Excellent as a slow leg in a crossover system.