OPEN-SOURCE SCRIPT
Mis à jour TA (Miles) Adaptive Trend

TA (Miles) Adaptive Trend
TA (Miles) Adaptive Trend is a volatility-gated trend follower. At its core is a 21/55 EMA pair, but unlike a plain EMA cross, a flip only counts when the market proves it.
What makes it different
A raw EMA cross is only the starting point. Before it becomes a trend flip it must clear a stack of gates, and that gating is the whole point of the tool:
1. Volume must run above its 20-bar average (default 1.2x).
2. Volatility must be alive (ATR above a minimum percent of price).
3. The EMAs must be spread far enough apart to mean something (default 0.12 percent).
4. Price must hold the new side for a confirmation period (default 2 bars).
5. A cooldown since the last flip must have passed (default 8 bars).
Optional extras: an ADX floor, and a higher-timeframe filter that only allows flips agreeing with the daily 200 MA. The result is a trend follower that sits out the chop that bleeds plain MA-cross systems dry in sideways markets.
What you see
The 21 and 55 EMAs with a fill colored by the confirmed trend state (blue bull, orange bear, gray neutral). Flip triangles mark confirmed changes. Gray X markers show blocked crosses, the raw EMA crosses the anti-chop engine rejected, which is half the value: you see exactly the whipsaws you were spared. A compact info table reports the current trend, EMA spread, chop status, and ATR percent.
Strategy integration
Exports trend state and flip events as data-window plots you can wire into companion strategy scripts.
Best timeframes
Tuned for daily charts; works well on 4H and weekly. On lower timeframes, raise the confirmation bars and cooldown.
Alerts
Two conditions: Bull trend flip and Bear trend flip, confirmed flips only, never raw crosses.
TA (Miles) Adaptive Trend is a volatility-gated trend follower. At its core is a 21/55 EMA pair, but unlike a plain EMA cross, a flip only counts when the market proves it.
What makes it different
A raw EMA cross is only the starting point. Before it becomes a trend flip it must clear a stack of gates, and that gating is the whole point of the tool:
1. Volume must run above its 20-bar average (default 1.2x).
2. Volatility must be alive (ATR above a minimum percent of price).
3. The EMAs must be spread far enough apart to mean something (default 0.12 percent).
4. Price must hold the new side for a confirmation period (default 2 bars).
5. A cooldown since the last flip must have passed (default 8 bars).
Optional extras: an ADX floor, and a higher-timeframe filter that only allows flips agreeing with the daily 200 MA. The result is a trend follower that sits out the chop that bleeds plain MA-cross systems dry in sideways markets.
What you see
The 21 and 55 EMAs with a fill colored by the confirmed trend state (blue bull, orange bear, gray neutral). Flip triangles mark confirmed changes. Gray X markers show blocked crosses, the raw EMA crosses the anti-chop engine rejected, which is half the value: you see exactly the whipsaws you were spared. A compact info table reports the current trend, EMA spread, chop status, and ATR percent.
Strategy integration
Exports trend state and flip events as data-window plots you can wire into companion strategy scripts.
Best timeframes
Tuned for daily charts; works well on 4H and weekly. On lower timeframes, raise the confirmation bars and cooldown.
Alerts
Two conditions: Bull trend flip and Bear trend flip, confirmed flips only, never raw crosses.
Notes de version
Adaptive Trend - V2A major upgrade to the trend engine, focused on cutting whipsaws in choppy
markets and making the settings much simpler.
New in this version:
- Volatility-gated trend detection. The zone now factors in volatility
contraction and sideways structure, and holds back early flips when price is
chopping. Clean EMA crosses always flip the zone.
- Confluence-accelerated flips. A volume climax or a reversal candle can pull a
flip slightly ahead of the EMA cross, so strong moves register a bit sooner.
- One Sensitivity setting. Light, Balanced, or Strict now drives all the filter
thresholds at once, so there are no more individual numbers to tune. Balanced
is the recommended default.
- New Signal Quality controls for blocking flips in chop and requiring a
bearish candle before a short flip.
- Cleaner visuals. Thinner EMA lines, a mint green uptrend zone, flip triangles
without text labels, and blocked markers off by default.
Since the engine changed, the settings panel is streamlined, so take a moment to
review your settings after updating.
Notes de version
Streamlined public features.Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Invite-only indicators for Trading Apologist Patreon members.
Join at patreon.com/TradingApologist, then submit your TradingView username via the form on Patreon or the portal at tradingapologist.com. Access within 1-2h.
Join at patreon.com/TradingApologist, then submit your TradingView username via the form on Patreon or the portal at tradingapologist.com. Access within 1-2h.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Invite-only indicators for Trading Apologist Patreon members.
Join at patreon.com/TradingApologist, then submit your TradingView username via the form on Patreon or the portal at tradingapologist.com. Access within 1-2h.
Join at patreon.com/TradingApologist, then submit your TradingView username via the form on Patreon or the portal at tradingapologist.com. Access within 1-2h.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.