Skip to content

[Indicator] Adaptive SuperTrend - Multi-Method #12

@MDUYN

Description

@MDUYN

Indicator Name

Adaptive SuperTrend

Category

Trend

Description

📊 Adaptive SuperTrend - Multi-Method with Advanced Analytics

🎯 Overview

The Adaptive SuperTrend - Multi-Method is a sophisticated trading indicator that enhances the traditional SuperTrend by dynamically adjusting its parameters based on market conditions. Unlike static SuperTrend indicators, this version adapts to volatility changes, providing more reliable signals across different market regimes.

✨ Key Features

🤖 7 Adaptive Methods

Choose from multiple adaptation strategies or use the powerful Hybrid mode that combines all methods:

  1. Percentile-Based Adaptation
  • Adjusts multiplier based on ATR percentile ranking
  • Tightens during extreme volatility, widens during calm periods
  • Lookback: 100 bars (customizable)
  1. Volatility Regime Classification
  • Categorizes market into Low/Normal/High volatility regimes
  • Applies different multipliers for each regime
  • Default: Low=4.0x, Normal=2.5x, High=1.5x
  1. Z-Score Normalization
  • Uses statistical Z-score to normalize ATR
  • Adapts to volatility outliers intelligently
  • Sensitivity: 0.3 (adjustable)
  1. Dynamic Period Adjustment
  • Blends short and long ATR periods based on volatility
  • Responsive in volatile markets, stable in calm markets
  • Period range: 7-20 bars
  1. Rate of Change Method
  • Adjusts based on ATR's rate of change
  • Detects accelerating/decelerating volatility
  • Lookback: 20 bars
  1. Multi-Timeframe Comparison
  • Compares current timeframe ATR with higher timeframe
  • Provides macro-context awareness
  • Default HTF: Daily
  1. Hybrid Approach ⭐ RECOMMENDED
  • Combines all 6 methods with equal weighting
  • Smoothed with EMA for stability
  • Best overall performance

📈 Professional Statistics Panel

A comprehensive performance tracking panel with ML Fusion-inspired color scheme:

Features:

  • 💼 Current Position: Live LONG/SHORT status with entry price
  • 📊 Total Points: Cumulative P&L for selected period (default: 60 days)
  • 💰 Current P&L: Unrealized profit/loss with percentage
  • 🟢 Long Stats: Separate tracking for long trades
  • 🔴 Short Stats: Separate tracking for short trades
  • 📈 Averages: Average points per trade (overall, long, short)
  • 📅 Date Range: Start and end dates of tracking period

Customizable Options:

  • Lookback period: 1-365 days (default: 60 days)
  • Table position: Top Left/Right, Bottom Left/Right
  • Toggle date range display on/off

🎨 Visual Features

  • Color-Coded Signals: Clear buy (green) and sell (red) markers
  • Trend Background: Subtle background coloring for trend direction
  • SuperTrend Line: Dynamic color based on current trend
  • Price Fill: Shaded area between price and SuperTrend
  • Vibrant Colors: Professional Material Design color palette

📊 Information Panel

Real-time display of:

  • Active adaptation method
  • Current ATR value
  • ATR percentile ranking
  • Active multiplier vs base multiplier
  • Volatility regime (Low/Normal/High)
  • ATR Z-Score
  • Current trend direction

🔧 How to Use

Quick Start

  1. Add indicator to your chart
  2. Choose adaptation method (start with "Hybrid")
  3. Monitor the statistics panel for performance
  4. Use signals for entry/exit points

Recommended Settings

For Intraday Trading:

  • Method: Hybrid or Dynamic Period
  • Base ATR Period: 10
  • Base Multiplier: 2.5-3.0
  • P&L Tracking: 30 days

For Swing Trading:

  • Method: Hybrid or Multi-Timeframe
  • Base ATR Period: 14
  • Base Multiplier: 3.0-4.0
  • P&L Tracking: 90 days

For Scalping:

  • Method: Rate of Change or Z-Score
  • Base ATR Period: 7
  • Base Multiplier: 2.0-2.5
  • P&L Tracking: 7-14 days

Signal Interpretation

BUY Signal: Triangle up below bar

  • Enter long position
  • Place stop loss below SuperTrend line

SELL Signal: Triangle down above bar

  • Exit long / Enter short position
  • Place stop loss above SuperTrend line

⚙️ Input Parameters

Basic Settings

  • Base ATR Period: Default 10 (1-50)
  • Base Multiplier: Default 3.0 (0.1-10.0)

Method-Specific Settings

Each of the 7 methods has its own customizable parameters for fine-tuning.

Display Settings

  • Show Volatility Regime: Toggle regime display
  • Show ATR Info Panel: Toggle information panel
  • Show Statistics Panel: Toggle performance stats
  • Stats Table Position: Choose corner placement
  • P&L Tracking Period: 1-365 days (default: 60)
  • Show P&L Date Range: Toggle date range display
  • Bullish Color: Customize trend-up color
  • Bearish Color: Customize trend-down color

📊 Statistics Tracking

The indicator automatically tracks:

  • Entry Points: Recorded on every trend change
  • Exit Points: Calculated on opposite signal
  • Points Gained/Lost: Per trade and cumulative
  • Long vs Short Performance: Separate analytics
  • Trade Count: Total, long, and short trades
  • Average Performance: Overall and per direction
  • Time-Based Filtering: Only shows trades within lookback period

🎯 Advantages Over Standard SuperTrend

  1. Adaptive to Market Conditions: No more whipsaws in ranging markets or missed trends in volatile markets
  2. Multiple Adaptation Strategies: Choose the method that fits your market and timeframe
  3. Comprehensive Analytics: Track your performance with detailed statistics
  4. Professional Presentation: Clean, organized display with Material Design colors
  5. Flexible Configuration: Highly customizable for any trading style
  6. Real-Time Monitoring: Live P&L tracking and performance metrics

🔔 Alerts

Built-in alert conditions for:

  • Buy Signal (trend change to bullish)
  • Sell Signal (trend change to bearish)
  • Trend Change (any direction change)

Set up TradingView alerts to get notified on your phone or email when signals occur.

💡 Pro Tips

  1. Combine with Volume: Use with volume indicators for confirmation
  2. Multiple Timeframes: Add on multiple timeframes for confluence
  3. Risk Management: Always use stop losses at SuperTrend line
  4. Backtest First: Test on historical data before live trading
  5. Monitor Statistics: Track your win rate and average gains
  6. Adjust for Market: Switch methods based on market conditions
  7. Use Hybrid Mode: When unsure, Hybrid mode provides balanced adaptation

📝 Version Notes

Version 1.0

  • 7 adaptive methods with Hybrid mode
  • Professional statistics panel with P&L tracking
  • Configurable lookback period (1-365 days)
  • Date range display
  • Material Design color scheme
  • Real-time performance analytics
  • Multiple table position options

⚠️ Disclaimer

This indicator is for educational and informational purposes only. It should not be considered as financial advice. Always do your own research and consider consulting with a financial advisor before making trading decisions. Past performance does not guarantee future results.


Happy Trading! 🚀📈


🏷️ Tags

#SuperTrend #Adaptive #Volatility #TrendFollowing #ATR #Statistics #Analytics #PnL #Trading #Technical #Indicators #MultiMethod #Swing #Intraday #Scalping #RiskManagement
Nov 19, 2025
Release Notes
Version 2: Select the method automatically based on ATR.
Nov 19, 2025
Release Notes
Version 2.1: Table position and Text size are configurable now.
Nov 22, 2025
Release Notes
Release V2.1: gave an option to select signal based on running candle or closed candle
Feb 13
Release Notes
Added RSI and MACD for the calculation of signal
Feb 13
Release Notes
Added RSI and MACD for the signal calculation.

Reference Chart(s)

Image

Chart Description

See uploaded image

Parameters

  • period (int, default=14):
  • source_column (str, default='Close'):

Source / Reference

No response

Expected Output Columns

No response

Deliverables Checklist

  • Implementation in pyindicators/indicators/ (pandas + polars support)
  • Exports in __init__.py and __all__
  • Unit tests in tests/indicators/ (pandas, polars, edge cases)
  • Documentation page in docs/content/indicators/ with chart image
  • Sidebar registration in docs/sidebars.js
  • Entry in README.md features list
  • Analysis notebook in analysis/indicators/ with plotly chart

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    squadSquad triage inbox — Lead will assign to a member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions