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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
Made with passion by KenshinC
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
Made with passion by KenshinC
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.