OPEN-SOURCE SCRIPT
Custom 4 MA & Probability (KenshinC) [English]

Custom 4 MA - Fast / Normal / Slow / Super Slow with Deviation Analysis
This powerful multi-timeframe moving average indicator combines four strategically chosen Simple Moving Averages with advanced deviation analysis to help traders identify extreme price levels and mean-reversion opportunities.Key Features:Flexible MA Modes: Choose between calculating All 4 MAs simultaneously or Single MA Only for cleaner charts and better performance.
Four Strategic Periods:Fast MA (16) – Short-term momentum
Normal MA (100) – Medium-term trend
Slow MA (365) – Long-term trend (approximately 1 year on daily)
Super Slow MA (1460) – Very long-term trend (approximately 4–5 years on daily)
Advanced Deviation Analysis:
Automatically detects and tracks the strongest Top and Bottom percentage deviations from each MA within a configurable lookback window.
Visual Extreme Levels: Displays dashed horizontal lines for the top 5 highest and lowest deviation levels of each active MA, making overextended zones clearly visible.
Historical Labels: Marks significant Top and Bottom deviation points directly on the chart with detailed information (price + % deviation).
Statistics Table: Real-time table showing Start Date, Candles Above/Below MA, and percentage distribution for each active MA.
Fully Customizable: Colors, label sizes, number of extreme points, and lookback period are all adjustable.
Ideal For:
Mean-reversion traders
Swing and position traders
Traders who use multiple timeframe moving averages
Identifying high-probability reversal zones when price deviates significantly from long-term averages
Whether you're trading breakouts, pullbacks, or looking for exhaustion points, this indicator provides clear visual references for both trend strength and extreme price behavior.
This powerful multi-timeframe moving average indicator combines four strategically chosen Simple Moving Averages with advanced deviation analysis to help traders identify extreme price levels and mean-reversion opportunities.Key Features:Flexible MA Modes: Choose between calculating All 4 MAs simultaneously or Single MA Only for cleaner charts and better performance.
Four Strategic Periods:Fast MA (16) – Short-term momentum
Normal MA (100) – Medium-term trend
Slow MA (365) – Long-term trend (approximately 1 year on daily)
Super Slow MA (1460) – Very long-term trend (approximately 4–5 years on daily)
Advanced Deviation Analysis:
Automatically detects and tracks the strongest Top and Bottom percentage deviations from each MA within a configurable lookback window.
Visual Extreme Levels: Displays dashed horizontal lines for the top 5 highest and lowest deviation levels of each active MA, making overextended zones clearly visible.
Historical Labels: Marks significant Top and Bottom deviation points directly on the chart with detailed information (price + % deviation).
Statistics Table: Real-time table showing Start Date, Candles Above/Below MA, and percentage distribution for each active MA.
Fully Customizable: Colors, label sizes, number of extreme points, and lookback period are all adjustable.
Ideal For:
Mean-reversion traders
Swing and position traders
Traders who use multiple timeframe moving averages
Identifying high-probability reversal zones when price deviates significantly from long-term averages
Whether you're trading breakouts, pullbacks, or looking for exhaustion points, this indicator provides clear visual references for both trend strength and extreme price behavior.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Made with passion by KenshinC
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Made with passion by KenshinC
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.