6 Moving Averages Difference Table

This TradingView indicator calculates and plots up to six distinct moving averages (MAs) directly on the price chart. Users have extensive control over each MA, allowing selection of:
Type: SMA, EMA, WMA, VWMA, HMA, RMA
Length: Any positive integer
Color: User-defined
Visibility: Can be toggled on/off
A core feature is the on-chart data table, designed to provide a quick overview of the relationships between the MAs and the price. This table displays:
$-MA Column: The absolute difference between the user-selected Input Source (e.g., Close, Open, HLC3) and the current value of each MA.
MA$ Column: The actual calculated price value of each MA for the current bar.
MA vs. MA Matrix: A grid showing the absolute difference between every possible pair of the calculated MAs (e.g., MA1 vs. MA2, MA1 vs. MA3, MA2 vs. MA5, etc.).
Customization Options:
Input Source: Select the price source (Open, High, Low, Close, HL2, HLC3, OHLC4) used for all MA calculations and the price difference column.
Table Settings: Control the table's visibility, position on the chart, text size, decimal precision for displayed values, and the text used for the column headers ("$-MA" and "MA$").
Purpose:
This indicator is useful for traders who utilize multiple moving averages in their analysis. The table provides an immediate, quantitative snapshot of:
How far the current price is from each MA.
The exact value of each MA.
The spread or convergence between different MAs.
This helps in quickly assessing trend strength, potential support/resistance levels based on MA clusters, and the relative positioning of short-term versus long-term averages.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.