Adaptive Trend Flow [QuantAlgo]

Published on MillionChart by TheChartist.

Adaptive Trend Flow is a trend-following indicator that uses volatility-adjusted EMAs. A fast and a slow EMA detect the main trend, and bands based on standard deviation widen and narrow with market volatility, so the sensitivity adapts as conditions change.

Components:
- Dual EMA system: fast and slow EMAs for the primary trend.
- Volatility integration: volatility is computed and smoothed for the band calculation.
- Dynamic bands: volatility-adjusted boundaries used to validate the trend and act as dynamic support and resistance.
- Gradient visualisation: a progressive background that shows how long and how strongly a trend has been running.

Display:
- Colour-coded basis and trend lines for bullish and bearish phases.
- Smooth fills between key levels.
- Trend reversal markers: L for a confirmed bullish reversal and S for a confirmed bearish one.
- Alerts for trend changes in both directions.

How to use:
- Watch how price interacts with the basis line and trend band to judge direction and strength, and use the gradient intensity to gauge duration.
- Wait for a trend change to be validated before acting.
- Combine with volume analysis, check multiple timeframes, and adjust sensitivity to the volatility of the market.

Key settings:
- Main Length: sensitivity to trend changes (default 10).
- Smoothing Length: stability of the volatility calculation (default 14).
- Sensitivity: band width for validation (default 2.0).
- Visual options for colours and display.