-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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:
- Percentile-Based Adaptation
- Adjusts multiplier based on ATR percentile ranking
- Tightens during extreme volatility, widens during calm periods
- Lookback: 100 bars (customizable)
- 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
- Z-Score Normalization
- Uses statistical Z-score to normalize ATR
- Adapts to volatility outliers intelligently
- Sensitivity: 0.3 (adjustable)
- 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
- Rate of Change Method
- Adjusts based on ATR's rate of change
- Detects accelerating/decelerating volatility
- Lookback: 20 bars
- Multi-Timeframe Comparison
- Compares current timeframe ATR with higher timeframe
- Provides macro-context awareness
- Default HTF: Daily
- 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
- Add indicator to your chart
- Choose adaptation method (start with "Hybrid")
- Monitor the statistics panel for performance
- 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
- Adaptive to Market Conditions: No more whipsaws in ranging markets or missed trends in volatile markets
- Multiple Adaptation Strategies: Choose the method that fits your market and timeframe
- Comprehensive Analytics: Track your performance with detailed statistics
- Professional Presentation: Clean, organized display with Material Design colors
- Flexible Configuration: Highly customizable for any trading style
- 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
- Combine with Volume: Use with volume indicators for confirmation
- Multiple Timeframes: Add on multiple timeframes for confluence
- Risk Management: Always use stop losses at SuperTrend line
- Backtest First: Test on historical data before live trading
- Monitor Statistics: Track your win rate and average gains
- Adjust for Market: Switch methods based on market conditions
- 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)
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__.pyand__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