MA Distance Ribbon

This indicator displays the real-time distance (in price units) between the current price and 10 different moving averages (periods 20 to 200, step 20) in a separate pane below the chart.
Key Features
10 simultaneous deviation lines forming a smooth, colorful “ribbon”
Instant visual feedback:
Green shades = price is below the MA (potential oversold / bullish momentum)
Purple/Magenta shades = price is above the MA (potential overbought / bearish pressure)
Gradient transparency: shorter periods = bolder colors, longer periods = softer tones for perfect visual hierarchy
Supports SMA, EMA, WMA, HMA and VWMA
Clean zero line + elegant info table showing current distance for each period
No clutter on the price chart (overlay=false)
How to use
Ribbon expanding upward in purple → strong bullish momentum, possible over-extension
Ribbon expanding downward in green → strong bearish momentum, possible oversold condition
Convergence toward zero → price returning to equilibrium with the selected MAs
Works excellently as a trend-strength filter, mean-reversion signal source or overbought/oversold confirmation tool
Perfect for scalpers, swing traders and algo developers who want a clear, beautiful and highly informative deviation panel.
Clean code | Professional look | Instant insight
MA Distance Ribbon – see the hidden pulse behind every moving average.
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب constantineborsa مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.
تعليمات المؤلف
إخلاء المسؤولية
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب constantineborsa مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.