Adaptive Flow | AnonycryptousAdaptive Flow | Anonycryptous
Description & user manual
Why this indicator is different
Most trend-following indicators use a fixed moving average. A 50-period EMA moves at the same speed whether the market is trending hard or grinding sideways. It cannot distinguish between a clean directional move and noise. It gives the same weight to a volatile consolidation as it does to a strong impulse. The result is signals that arrive late in trends and fire repeatedly during chop.
Adaptive Flow works differently.
At its core is a Kaufman Adaptive Moving Average — a moving average that measures the efficiency of price movement on every single bar and adjusts its own speed accordingly. When price is moving cleanly in one direction with low noise, KAMA accelerates toward price. When price is churning sideways with high volatility and no direction, KAMA nearly stops moving. It adapts. Automatically. Without requiring any manual intervention.
This adaptive behavior feeds into an ATR-based trailing stop that uses a ratchet mechanism — it only moves in the direction of the trade and locks in the trend floor or ceiling. When KAMA crosses the trailing stop, the trend flips. A signal fires.
But a signal alone is not enough context. Adaptive Flow adds a macro trend filter via the EMA 200, a session-anchored VWAP as a value reference, and an optional noise gate that prevents KAMA from updating on insignificant price moves. Every component has a purpose. Together they form a complete adaptive trend system that tells you not just what the trend is, but whether the conditions are right to act on it.
Important notice
Adaptive Flow generates signals based on technical indicator alignment.
These signals are not financial advice.
They do not predict the future.
They do not guarantee profitability.
All trading decisions are made entirely by the user.
Always manage your own risk. Always apply your own judgment.
1. Overview
Adaptive Flow is an adaptive trend-following indicator built around a Kaufman Adaptive Moving Average with an ATR-based trailing stop. It includes a macro trend filter, a session-anchored VWAP, a noise gate, three presets, and a live dashboard.
What it includes:
- Kaufman Adaptive Moving Average with configurable efficiency ratio period and fast/slow smoothing constants
- ATR trailing stop with ratchet mechanism and cloud fill between KAMA and the stop line
- Noise filter gate that prevents KAMA from updating on insignificant price moves
- EMA 200 macro trend filter with higher timeframe input support
- Session-anchored VWAP with daily and custom session modes and timezone selection
- Dual-layer triangle signals at trend reversals, filtered by the EMA 200
- Bar coloring reflecting the current trend state
- Three presets: default for swing, fast for scalping, smooth for position trading
- Live dashboard showing trend direction, KAMA position, EMA 200 status, VWAP position, noise filter state, and last signal
2. KAMA — Kaufman Adaptive Moving Average
KAMA is the engine of Adaptive Flow. On every bar it calculates an Efficiency Ratio — a measure of how directionally efficient recent price movement is relative to total volatility over the lookback period.
When the Efficiency Ratio is high — price is moving strongly in one direction with low noise — KAMA accelerates toward price using the fast smoothing constant. When the Efficiency Ratio is low — price is churning with high volatility and no clear direction — KAMA slows to a near-flat line using the slow smoothing constant.
The result is a moving average that naturally tightens during trends, tracking price closely, and dampens during consolidation, filtering noise before it reaches the signal layer.
Key inputs:
KAMA length — the lookback window for the Efficiency Ratio calculation. Shorter periods (5–10) increase sensitivity to recent price swings. Longer periods (20–30) require more sustained directional movement before KAMA accelerates.
Fast EMA length — the smoothing speed during trending conditions. Lower values make KAMA respond aggressively during strong trends. Default of 2 is the standard fast constant.
Slow EMA length — the smoothing speed during ranging conditions. Higher values anchor KAMA firmly during choppy conditions. Default of 30 provides strong noise rejection.
3. ATR trailing stop
The ATR trailing stop is the primary signal line plotted on the chart. It trails KAMA at a distance of ATR multiplied by the configured multiplier and uses a ratchet mechanism.
In an uptrend the stop only moves upward, locking in the trend floor. In a downtrend it only moves downward, locking in the ceiling. The stop never moves against the direction of the trade.
When KAMA crosses the trailing stop, the trend flips and the stop resets on the opposite side. A reversal signal fires at that bar.
The fill zone between KAMA and the trailing stop line is rendered as a color cloud that reflects the current trend direction. Cloud transparency is configurable.
Key inputs:
ATR length — the volatility measurement period. Shorter periods respond quickly to volatility changes. Longer periods produce a more stable band.
ATR multiplier — the distance of the trailing stop from KAMA. Lower values produce tighter stops with more frequent signals. Higher values allow trends more room and reduce whipsaws.
4. Noise filter
The noise filter is an optional gate that prevents KAMA from updating on insignificant price moves. When enabled, KAMA only advances when the price displacement exceeds ATR multiplied by the noise threshold. Moves smaller than that threshold are ignored, keeping the trend line stable during low-momentum conditions.
When disabled, KAMA updates every bar at full adaptive speed. This is optimal for strong trending environments where maximum responsiveness is required.
On lower timeframes keep the threshold low (0.1–0.2) to avoid over-filtering fast price moves.
5. EMA 200 — macro trend filter
The EMA 200 acts as a regime filter. Bullish reversal signals only fire when price is above the EMA 200, confirming a macro uptrend. Bearish reversal signals only fire when price is below the EMA 200, confirming a macro downtrend. This eliminates counter-trend entries and aligns every signal with the dominant market structure.
The EMA 200 supports a higher timeframe input. On lower timeframes (1–15 minutes) it is strongly recommended to set this to 1H or 4H. The native EMA 200 on a 1 minute chart only covers a few hours of data and provides little macro context. A label showing the current EMA 200 value appears at the right edge of the chart for quick reference. The line can be hidden while keeping the EMA 200 active as a hidden signal filter.
6. VWAP — session-anchored volume weighted average price
VWAP provides a volume-weighted price reference that resets at the start of each session. It represents the average price paid weighted by volume — a key reference for intraday value and institutional order flow.
Two session modes are available:
Daily — VWAP resets each calendar day. Standard reference for intraday traders.
Custom — VWAP is anchored to a specific session defined by start and end times. Use this to isolate the Asia, London, or New York session, or any custom window. A timezone selector ensures correct boundary alignment regardless of exchange.
A label showing the current VWAP value appears at the right edge of the chart. The line can be hidden while VWAP continues to calculate internally.
On higher timeframes VWAP resets less frequently and its intraday reference value diminishes. Consider using it as a broader session value area reference in those cases.
7. Signals
Trend reversal signals fire when KAMA crosses the ATR trailing stop. They are rendered as dual-layer triangle markers directly on the chart at the trailing stop line.
A solid inner triangle marks the precise reversal point. An outer semi-transparent triangle creates a glow effect for visibility on busy charts.
Up triangles indicate bullish reversals. Down triangles indicate bearish reversals.
All signals are filtered by the EMA 200. Bullish signals only fire above the EMA 200. Bearish signals only fire below it.
Bar coloring reflects the current trend state continuously between signals.
8. Presets
Three preset configurations are available. Selecting a preset overrides the core calculation parameters. Visual settings and VWAP configuration remain under manual control.
-Default — swing trading on 4H and daily charts
KAMA 14 | Fast 2 | Slow 30 | ATR 14 | Multiplier 3.5 | Noise 0.3
Balanced efficiency ratio period with standard fast/slow constants. Adaptive behavior across most market conditions with moderate noise filtering.
-Fast — scalping on 1 minute to 15 minute charts
KAMA 6 | Fast 2 | Slow 15 | ATR 7 | Multiplier 1.8 | Noise 0.15
Short efficiency ratio period reacts immediately to momentum shifts. Tight ATR band and low multiplier keep stops close. Minimal noise filtering preserves full adaptive speed.
-Smooth — position trading on daily and weekly charts
KAMA 21 | Fast 3 | Slow 40 | ATR 21 | Multiplier 5.0 | Noise 0.5
Extended efficiency ratio period demands sustained momentum before accelerating. Wide slow constant and aggressive noise filtering ensure only high-conviction moves generate signals.
9. Dashboard
The dashboard displays the live state of all indicator components and updates on every bar close.
Rows displayed:
- Trend — current state: bullish or bearish
- KAMA — whether KAMA is above or below the ATR trailing stop
- EMA 200 — whether price is above or below the macro filter
- VWAP — whether price is above or below session value
- Noise filter — whether the noise gate is active or disabled
- Signal — last signal fired: buy, sell, or none
The dashboard is available in three sizes (tiny, small, normal) and four positions (top left, top right, bottom left, bottom right).
10. Settings reference
Calculation parameters
- Price source: close, high, low, HL2, or open
- KAMA length: efficiency ratio lookback period
- Fast EMA length: smoothing speed during trending conditions
- Slow EMA length: smoothing speed during ranging conditions
- ATR length: volatility measurement period
- ATR multiplier: trailing stop distance from KAMA
- Enable noise filter: toggle the price displacement gate
- Noise filter threshold: minimum ATR multiple required to advance KAMA
- Preset configuration: default, fast, or smooth
Visualization settings
- Show EMA 200 and its value label
- EMA 200 timeframe: leave empty for chart timeframe or set to higher timeframe
- EMA 200 color
- Color preset: classic (green/red) or custom
- Bullish and bearish trend colors
- Cloud transparency
- Bar color transparency
- Show trend reversal signals
- Enable bar coloring
VWAP settings
- VWAP session: daily or custom
- Timezone: UTC, exchange, or major financial center timezone
- Session window: start and end time in HH:MM format (custom mode)
- Show VWAP line and value label
- VWAP color
Dashboard settings
- Show dashboard
- Dashboard size: tiny, small, or normal
- Dashboard position: top left, top right, bottom left, or bottom right
11. How to use
11.1 Lower timeframes (1 minute to 15 minutes)
Use the fast preset as a starting point. Set the EMA 200 timeframe to 60 (1H) or 240 (4H) — never leave it on the chart timeframe at these levels, as the native EMA 200 only covers a few hours of data and provides no macro context. Set the VWAP session to daily or to the active session with the correct timezone. Keep the noise filter enabled at 0.15.
For 1 minute and 3 minute scalping, consider reducing the ATR multiplier to 1.5 if stops feel too wide.
Only take bullish signals when price is above the HTF EMA 200 and above VWAP. Only take bearish signals when price is below both. Avoid signals that fire within the first few bars of a new VWAP session before it is statistically meaningful.
11.2 Higher timeframes (1H, 4H, daily)
Use the default preset for 1H and 4H. Use the smooth preset for daily and weekly charts. The EMA 200 can remain on the chart timeframe at these levels.
Watch for KAMA cloud expansion — the cloud widening indicates momentum building and a healthy trend. Cloud narrowing indicates KAMA is slowing, signaling possible consolidation ahead. The dashboard EMA 200 and VWAP rows both aligned with the signal direction produce the highest conviction setups.
11.3 What to watch
KAMA cloud widening — momentum building, trend is healthy.
KAMA cloud narrowing — KAMA slowing, possible consolidation ahead.
ATR trailing stop flip — confirmed trend change, signal fires here.
EMA 200 and VWAP aligned with signal direction — highest conviction setup.
Dashboard signal row — use as final confirmation before acting.
12. Disclaimer
This indicator is provided for educational and informational purposes only.
All outputs are based on historical price action calculations and do not guarantee future results.
Trading financial instruments involves significant risk of loss.
Past performance does not indicate future results.
Use at your own discretion.
Pine Script® 인디케이터






















