PROTECTED SOURCE SCRIPT
MA Dashboard (NAPC Histogram Table) MADashV1

MA Dashboard (MAPC Histogram Table) MADashV1 - User Guide
1. Introduction & Purpose
The "MA Dashboard (MADashV1)" indicator is a tool for TradingView designed to give you a quick, comprehensive overview of how the current price relates to multiple Moving Averages (MAs). It displays key information in a convenient table and provides a visual histogram in a separate pane below your main price chart.
Its main goals are:
To monitor up to six different MAs simultaneously without cluttering your main chart.
To instantly see if the price is currently above or below each MA ("Status").
To show the actual value of each MA ("MA$").
To identify the price level of the most recent price crossover for each MA within a specific lookback period ("
XMA").
To quantify the exact difference between the current price and each MA ("MAPC" - Moving Average Price Crossover/Difference).
To visualize the MAPC of one selected MA as a histogram for quick momentum assessment.
To optionally plot the historical MAPC values as lines in the histogram pane.
2. Key Features
Configurable MAs: Set up to 6 independent Moving Averages. For each, you can choose:
Type (SMA, EMA, WMA, RMA)
Length (Period)
Source (Close, Open, High, Low, etc.)
Color (Used for identification in the table)
Informative Table: A dashboard summarizing all configured MAs, showing:
MA Number (1-6)
Type & Length settings
Current MA Value (MA$)
Price Status relative to MA (Bullish/Bearish/Neutral)
Last Crossover Price (
XMA) with color-coded background (Green=Up, Red=Down)
Price Difference from MA (MAPC) with color-coded text (Green=Positive, Red=Negative)
MAPC Histogram: Plotted in a separate pane, showing the difference between the price and one user-selected MA.
Green bars indicate the price is above the selected MA.
Red bars indicate the price is below the selected MA.
The height of the bars shows the magnitude of the difference.
Optional MAPC Lines: Plot the historical MAPC values for any of the 6 MAs as lines directly on the histogram pane for comparison.
Customizable Appearance: Control the table's position, colors (background, text, header, border), border size, and text size.
Flexible Formatting: Adjust the number of decimal places displayed for price values and MAPC values.
Crossover Lookback: Define how many bars back the indicator should look for the last price crossover (
XMA).
3. How It Works (Simplified)
MA Calculation: The indicator calculates the value of each enabled Moving Average based on your chosen settings (Type, Length, Source).
Status Check: For each MA, it compares the current price (from the MA's Source setting) to the MA's calculated value. If the price is higher, the status is "Bullish"; if lower, "Bearish"; if equal, "Neutral".
MAPC Calculation: It simply subtracts the MA's value from the current price (Price - MA Value). This gives the raw price difference, shown in the MAPC column.
XMA Calculation: It looks back over the number of bars you specified ("Crossover Lookback Bars"). It finds the most recent instance where the price crossed either above or below the MA within that lookback period. It then records the price at which that specific crossover occurred and displays it in the
XMA column. The background color indicates if the last cross within the lookback was upwards (green) or downwards (red). If no cross occurred within the lookback, it shows "N/A".
Histogram: It takes the MAPC value (Price - MA Value) calculated for the single MA you selected in the "Histogram Source MA" setting and plots it as a bar for each candle.
4. Indicator Components
Histogram Pane: This appears below your main price chart.
Histogram Bars: Visual representation of the MAPC for the selected MA.
Zero Line: A horizontal line indicating where the price is exactly equal to the selected MA.
(Optional) MAPC Lines: Lines showing the historical MAPC values for any MAs you choose to plot.
Information Table: Displayed on top of the Histogram Pane (or wherever you position it). This is the main dashboard showing the data for all enabled MAs.
5. Configuration Settings (Inputs)
When you add the indicator to your chart, you'll see these settings:
General Settings:
Show Info Table: Turn the table display on or off.
Table Horizontal/Vertical Position: Choose where the table appears (Top/Middle/Bottom, Left/Center/Right).
Table BG Color, Table Text Color, Table Header Color: Customize the table's colors.
Table Border Size, Table Border Color: Adjust the table's border.
Text Size: Change the font size within the table.
Formatting:
Price Decimals: Set how many decimal places to show for MA values (MA$) and crossover prices (
XMA). "Default" uses the chart's setting.
MAPC Decimals: Set how many decimal places to show for the MAPC column values.
Crossover Settings:
Crossover (
XMA) Lookback Bars: How many past bars to check for the last price/MA crossover. A smaller number focuses on recent crosses.
Histogram Settings:
Show Histogram Pane: Turn the entire histogram pane (including bars and lines) on or off.
Histogram Source MA: Crucial setting! Select which MA (MA1 to MA6) will be used to generate the histogram bars.
Histogram Positive/Negative Color: Choose the colors for the histogram bars when the price is above (positive) or below (negative) the selected MA.
Plot MAPC Line 1 to Plot MAPC Line 6: Check these boxes to draw the historical MAPC value for the corresponding MA as a line on the histogram pane.
MA 1 to MA 6 Settings:
Enable MA X: Turn each specific MA on or off. If off, it won't be calculated or shown in the table.
Type: Select the calculation type (SMA, EMA, etc.).
Length: Set the period for the MA.
Source: Choose the price data used for the MA calculation (Close, Open, High, Low, hl2, etc.).
Color: Select a color for this MA. This color is used as the background for the MA number in the first column of the table for easy identification.
Style, Width: These primarily affect how the MA would look if plotted on the main chart (which this indicator doesn't do by default), but the Width setting is not used in the table or histogram pane.
6. How to Interpret the Output
Table:
MA, Type, Len: Reminders of your settings for each row.
MA$: The current calculated value of that Moving Average.
Status: Quickly see if the price is currently bullish (above) or bearish (below) relative to that specific MA. Look for confluence (multiple MAs showing the same status). Text color matches MAPC (Green=Bullish, Red=Bearish).
XMA: Shows the price level of the last crossover within your lookback period. The background color tells you the direction of that cross (Green = Price crossed UP, Red = Price crossed DOWN). Useful for identifying potential support/resistance levels based on recent crosses. "N/A" means no cross occurred within the lookback.
MAPC: Shows the exact price difference between the source price and the MA. A large positive number means the price is significantly above the MA; a large negative number means it's significantly below. The text color indicates the direction (Green = Price > MA, Red = Price < MA). Useful for gauging the strength of deviation from the MA.
Histogram:
Focus on the MA selected in Histogram Source MA.
Bars above Zero: Price is above the selected MA (Bullish). Taller bars mean a larger difference.
Bars below Zero: Price is below the selected MA (Bearish). Longer bars (downwards) mean a larger difference.
Crossing the Zero Line: Indicates the price is crossing the selected MA.
Trend/Momentum: Observe if the histogram bars are generally staying positive or negative, and if their height/length is increasing or decreasing, which can indicate strengthening or weakening momentum relative to that MA.
MAPC Lines (if enabled):
Compare the lines to each other and the zero line. See how the price difference for different MAs has evolved over time. For example, you could plot a short-term MAPC line and a long-term MAPC line to see how they diverge or converge.
7. Potential Use Cases
Trend Confirmation: Check if the price is consistently above (bullish) or below (bearish) multiple MAs according to the "Status" column.
Momentum Gauge: Use the Histogram height/depth or the MAPC values to see how far the price is deviating from key MAs. Increasing deviation might suggest strong momentum, while decreasing deviation might suggest consolidation or reversal potential.
Crossover Signals: Use the "
XMA" column's background color to quickly spot recent crossovers within your defined lookback. Note the price level (
XMA value) where it happened.
Dynamic Support/Resistance: The current "MA$" values act as potential dynamic support (if price is above) or resistance (if price is below). The "
XMA" price shows where recent interactions occurred.
Comparing MA Relationships: Enable MAPC lines for different MAs (e.g., a fast MA and a slow MA) to visualize how their distance from the price changes relative to each other.
8. Important Notes
This indicator plots in a separate pane (overlay=false), not directly on your price chart.
The MA lines themselves are not plotted on the main chart by default, although the plotting code exists internally. The focus is on the table and histogram data.
MAPC shows the absolute price difference, not a percentage difference.
The usefulness of the "
XMA" column depends heavily on the "Crossover Lookback Bars" setting.
This guide should help you understand and effectively use the MA Dashboard (MADashV1) indicator. Remember to experiment with the settings to tailor it to your specific trading style and the assets you trade.
1. Introduction & Purpose
The "MA Dashboard (MADashV1)" indicator is a tool for TradingView designed to give you a quick, comprehensive overview of how the current price relates to multiple Moving Averages (MAs). It displays key information in a convenient table and provides a visual histogram in a separate pane below your main price chart.
Its main goals are:
To monitor up to six different MAs simultaneously without cluttering your main chart.
To instantly see if the price is currently above or below each MA ("Status").
To show the actual value of each MA ("MA$").
To identify the price level of the most recent price crossover for each MA within a specific lookback period ("
To quantify the exact difference between the current price and each MA ("MAPC" - Moving Average Price Crossover/Difference).
To visualize the MAPC of one selected MA as a histogram for quick momentum assessment.
To optionally plot the historical MAPC values as lines in the histogram pane.
2. Key Features
Configurable MAs: Set up to 6 independent Moving Averages. For each, you can choose:
Type (SMA, EMA, WMA, RMA)
Length (Period)
Source (Close, Open, High, Low, etc.)
Color (Used for identification in the table)
Informative Table: A dashboard summarizing all configured MAs, showing:
MA Number (1-6)
Type & Length settings
Current MA Value (MA$)
Price Status relative to MA (Bullish/Bearish/Neutral)
Last Crossover Price (
Price Difference from MA (MAPC) with color-coded text (Green=Positive, Red=Negative)
MAPC Histogram: Plotted in a separate pane, showing the difference between the price and one user-selected MA.
Green bars indicate the price is above the selected MA.
Red bars indicate the price is below the selected MA.
The height of the bars shows the magnitude of the difference.
Optional MAPC Lines: Plot the historical MAPC values for any of the 6 MAs as lines directly on the histogram pane for comparison.
Customizable Appearance: Control the table's position, colors (background, text, header, border), border size, and text size.
Flexible Formatting: Adjust the number of decimal places displayed for price values and MAPC values.
Crossover Lookback: Define how many bars back the indicator should look for the last price crossover (
3. How It Works (Simplified)
MA Calculation: The indicator calculates the value of each enabled Moving Average based on your chosen settings (Type, Length, Source).
Status Check: For each MA, it compares the current price (from the MA's Source setting) to the MA's calculated value. If the price is higher, the status is "Bullish"; if lower, "Bearish"; if equal, "Neutral".
MAPC Calculation: It simply subtracts the MA's value from the current price (Price - MA Value). This gives the raw price difference, shown in the MAPC column.
Histogram: It takes the MAPC value (Price - MA Value) calculated for the single MA you selected in the "Histogram Source MA" setting and plots it as a bar for each candle.
4. Indicator Components
Histogram Pane: This appears below your main price chart.
Histogram Bars: Visual representation of the MAPC for the selected MA.
Zero Line: A horizontal line indicating where the price is exactly equal to the selected MA.
(Optional) MAPC Lines: Lines showing the historical MAPC values for any MAs you choose to plot.
Information Table: Displayed on top of the Histogram Pane (or wherever you position it). This is the main dashboard showing the data for all enabled MAs.
5. Configuration Settings (Inputs)
When you add the indicator to your chart, you'll see these settings:
General Settings:
Show Info Table: Turn the table display on or off.
Table Horizontal/Vertical Position: Choose where the table appears (Top/Middle/Bottom, Left/Center/Right).
Table BG Color, Table Text Color, Table Header Color: Customize the table's colors.
Table Border Size, Table Border Color: Adjust the table's border.
Text Size: Change the font size within the table.
Formatting:
Price Decimals: Set how many decimal places to show for MA values (MA$) and crossover prices (
MAPC Decimals: Set how many decimal places to show for the MAPC column values.
Crossover Settings:
Crossover (
Histogram Settings:
Show Histogram Pane: Turn the entire histogram pane (including bars and lines) on or off.
Histogram Source MA: Crucial setting! Select which MA (MA1 to MA6) will be used to generate the histogram bars.
Histogram Positive/Negative Color: Choose the colors for the histogram bars when the price is above (positive) or below (negative) the selected MA.
Plot MAPC Line 1 to Plot MAPC Line 6: Check these boxes to draw the historical MAPC value for the corresponding MA as a line on the histogram pane.
MA 1 to MA 6 Settings:
Enable MA X: Turn each specific MA on or off. If off, it won't be calculated or shown in the table.
Type: Select the calculation type (SMA, EMA, etc.).
Length: Set the period for the MA.
Source: Choose the price data used for the MA calculation (Close, Open, High, Low, hl2, etc.).
Color: Select a color for this MA. This color is used as the background for the MA number in the first column of the table for easy identification.
Style, Width: These primarily affect how the MA would look if plotted on the main chart (which this indicator doesn't do by default), but the Width setting is not used in the table or histogram pane.
6. How to Interpret the Output
Table:
MA, Type, Len: Reminders of your settings for each row.
MA$: The current calculated value of that Moving Average.
Status: Quickly see if the price is currently bullish (above) or bearish (below) relative to that specific MA. Look for confluence (multiple MAs showing the same status). Text color matches MAPC (Green=Bullish, Red=Bearish).
MAPC: Shows the exact price difference between the source price and the MA. A large positive number means the price is significantly above the MA; a large negative number means it's significantly below. The text color indicates the direction (Green = Price > MA, Red = Price < MA). Useful for gauging the strength of deviation from the MA.
Histogram:
Focus on the MA selected in Histogram Source MA.
Bars above Zero: Price is above the selected MA (Bullish). Taller bars mean a larger difference.
Bars below Zero: Price is below the selected MA (Bearish). Longer bars (downwards) mean a larger difference.
Crossing the Zero Line: Indicates the price is crossing the selected MA.
Trend/Momentum: Observe if the histogram bars are generally staying positive or negative, and if their height/length is increasing or decreasing, which can indicate strengthening or weakening momentum relative to that MA.
MAPC Lines (if enabled):
Compare the lines to each other and the zero line. See how the price difference for different MAs has evolved over time. For example, you could plot a short-term MAPC line and a long-term MAPC line to see how they diverge or converge.
7. Potential Use Cases
Trend Confirmation: Check if the price is consistently above (bullish) or below (bearish) multiple MAs according to the "Status" column.
Momentum Gauge: Use the Histogram height/depth or the MAPC values to see how far the price is deviating from key MAs. Increasing deviation might suggest strong momentum, while decreasing deviation might suggest consolidation or reversal potential.
Crossover Signals: Use the "
Dynamic Support/Resistance: The current "MA$" values act as potential dynamic support (if price is above) or resistance (if price is below). The "
Comparing MA Relationships: Enable MAPC lines for different MAs (e.g., a fast MA and a slow MA) to visualize how their distance from the price changes relative to each other.
8. Important Notes
This indicator plots in a separate pane (overlay=false), not directly on your price chart.
The MA lines themselves are not plotted on the main chart by default, although the plotting code exists internally. The focus is on the table and histogram data.
MAPC shows the absolute price difference, not a percentage difference.
The usefulness of the "
This guide should help you understand and effectively use the MA Dashboard (MADashV1) indicator. Remember to experiment with the settings to tailor it to your specific trading style and the assets you trade.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.