OPEN-SOURCE SCRIPT
ADAPTIVE SCALP MASTER

ADAPTIVE SCALP MASTER (ASM)
Overview
ADAPTIVE SCALP MASTER (ASM) is a high-performance technical analysis tool specifically engineered for scalpers and day traders. It combines statistical volatility analysis with a unique time-frame adaptation engine, allowing the script to automatically recalibrate its sensitivity whether you are trading the 1-minute chart or the 4-hour trend.
The core logic is based on Z-Score Mean Reversion coupled with Zero-Lag Least Squares Moving Average (ZLSMA) for trend filtering, ensuring that you enter trades only when momentum and statistical overextension align.
Key Features
Timeframe Adaptation Engine: ASM automatically adjusts its Z-Score lengths, thresholds, and ATR multipliers based on your current chart. It tightens parameters for high-frequency scalping (M1-M5) and widens them for higher timeframes to filter out market noise.
Z-Score Mean Reversion: Utilizes statistical standard deviation to identify overbought and oversold conditions with precision.
Zero-Lag Trend Filtering: Features a customized ZLSMA to provide a smooth, reactive trend baseline without the lag of traditional MAs.
Smart Risk Management: Automatically calculates dynamic Stop Loss and Take Profit levels based on current ATR volatility.
Aggressive Scalping Mode: A specialized toggle for experienced traders that maximizes signal frequency by loosening standard confirmation filters.
How It Works
Normalization: The indicator calculates the price deviation (Z-Score).
Adaptive Thresholds: It checks if the price has reached a statistically significant extreme (Overbought/Oversold).
Multi-Stage Filtering:
Trend Filter: Signals must align with the ZLSMA direction (optional).
Volume Filter: Requires a surge in volume to confirm the move (optional).
Candle Confirmation: Requires price action to flip in the signal's direction before firing.
Execution: Once all conditions are met, the script plots entry shapes and dynamic risk levels.
Settings Guide
Aggressive Mode: Use this for fast-paced scalping on M1. It disables the trend and volume filters to capture every micro-reversal.
Base Sensitivity: Controls how far back the Z-Score looks. Default is 10. Lower values make the indicator more reactive.
Base Threshold: Standard is 1.5. Increase this value (e.g., to 2.0) if you want fewer, higher-probability signals.
Min Bars Between: Use this to prevent "signal clustering" during periods of high volatility.
User Interface
The Info Panel provides real-time data including:
Current Market Bias (Trend direction).
Live Z-Score value.
Current ATR-based volatility status.
Trade Signal confirmation status.
Overview
ADAPTIVE SCALP MASTER (ASM) is a high-performance technical analysis tool specifically engineered for scalpers and day traders. It combines statistical volatility analysis with a unique time-frame adaptation engine, allowing the script to automatically recalibrate its sensitivity whether you are trading the 1-minute chart or the 4-hour trend.
The core logic is based on Z-Score Mean Reversion coupled with Zero-Lag Least Squares Moving Average (ZLSMA) for trend filtering, ensuring that you enter trades only when momentum and statistical overextension align.
Key Features
Timeframe Adaptation Engine: ASM automatically adjusts its Z-Score lengths, thresholds, and ATR multipliers based on your current chart. It tightens parameters for high-frequency scalping (M1-M5) and widens them for higher timeframes to filter out market noise.
Z-Score Mean Reversion: Utilizes statistical standard deviation to identify overbought and oversold conditions with precision.
Zero-Lag Trend Filtering: Features a customized ZLSMA to provide a smooth, reactive trend baseline without the lag of traditional MAs.
Smart Risk Management: Automatically calculates dynamic Stop Loss and Take Profit levels based on current ATR volatility.
Aggressive Scalping Mode: A specialized toggle for experienced traders that maximizes signal frequency by loosening standard confirmation filters.
How It Works
Normalization: The indicator calculates the price deviation (Z-Score).
Adaptive Thresholds: It checks if the price has reached a statistically significant extreme (Overbought/Oversold).
Multi-Stage Filtering:
Trend Filter: Signals must align with the ZLSMA direction (optional).
Volume Filter: Requires a surge in volume to confirm the move (optional).
Candle Confirmation: Requires price action to flip in the signal's direction before firing.
Execution: Once all conditions are met, the script plots entry shapes and dynamic risk levels.
Settings Guide
Aggressive Mode: Use this for fast-paced scalping on M1. It disables the trend and volume filters to capture every micro-reversal.
Base Sensitivity: Controls how far back the Z-Score looks. Default is 10. Lower values make the indicator more reactive.
Base Threshold: Standard is 1.5. Increase this value (e.g., to 2.0) if you want fewer, higher-probability signals.
Min Bars Between: Use this to prevent "signal clustering" during periods of high volatility.
User Interface
The Info Panel provides real-time data including:
Current Market Bias (Trend direction).
Live Z-Score value.
Current ATR-based volatility status.
Trade Signal confirmation status.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.