OPEN-SOURCE SCRIPT

Adaptive Kinetic Trend [AKT] Pure Math

281
Titolo: Adaptive Kinetic Trend [AKT] - Pure Math

Descrizione:

Overview The Adaptive Kinetic Trend [AKT] is a custom-built trend following system designed to filter noise and adapt to changing market volatility. Unlike standard indicators that rely on a static calculation, the AKT introduces a "Kinetic" component that adjusts the trend baseline according to price velocity (Momentum) and market intensity (ADX).

The "Pure Math" Implementation To ensure maximum stability and prevent potential discrepancies associated with data gaps or library updates, this script features a 100% manual mathematical library. It does not use TradingView's native ta.* functions for its core logic. Every calculation—including Wilder's Smoothing (RMA), Weighted Moving Averages (WMA), and True Range (TR)—is computed explicitly within the code from raw price data. This provides a transparent look at how the signals are derived.

Key Features

1. Kinetic Center Line The backbone of the indicator is an adaptive moving average that shifts its sensitivity based on a manually calculated RSI (Velocity).

High Velocity: The line reacts faster to capture breakout momentum.

Low Velocity: The line smooths out to prevent whipsaws during corrections.

2. Dynamic Volatility Expansion Using a custom ADX calculation (Intensity), the bands automatically expand during high-volatility events. This helps keep positions open during strong trends where standard ATR stops might be triggered prematurely.

3. Visual Filters (Color Logic) The script uses a strict color-coding system to guide analysis:

🟢 Green / 🔴 Red (Trend): The market is in a validated trend phase with sufficient intensity.

⚪ Gray (Choppy Filter): When Intensity falls below the threshold (default 20), the bars turn gray and signals are suppressed. This filters out low-probability ranging markets.

🟡 Yellow (Proximity Zone): When price trades within 0.5 ATR of the trend line, bars turn yellow. This indicates price is testing the trend structure.

4. Smart Pullback Signals (PB) Small triangles labeled "PB" appear when the price retraces to test the trend line.

Visual Intensity: The signals feature adaptive transparency. They appear bright during strong trends (High Probability) and faded/transparent during choppy conditions (Lower Probability), helping users filter signal quality visually.

5. Live Dashboard A data panel provides real-time metrics:

Trend Status: BULL, BEAR, or RANGE.

Intensity: Raw ADX value to gauge trend strength.

Dist ATR: The precise distance from the close price to the stop-loss line, measured in ATR multiples.

How to Use

Trend Analysis: Identify the main direction via Green/Red candles.

Filtering: Use the Gray bars to identify periods of low volatility/consolidation where trend strategies typically fail.

Re-entries: Use PB triangles to identify potential continuation points within an existing trend.

Risk Monitoring: Use Yellow bars (Proximity) to monitor price action near the invalidation level.

Disclaimer This script is intended for technical analysis and educational purposes only. It provides a visual representation of market trends based on historical data and does not guarantee future performance.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.