SMA Cross Dashboard
Apr 1, 2024

The SMA Cross Dashboard tool provides a multi-timeframe perspective on Simple Moving Average crossovers, allowing traders to monitor up to five different timeframes simultaneously from a single chart. It streamlines the process of identifying trend shifts by detecting when a shorter-term SMA crosses a longer-term SMA across various user-defined intervals.
Usage
The Usage section describes how the script can be used for multi-timeframe analysis. Traders can utilize the dashboard to confirm trend alignment; for example, seeing a bullish cross on both the 1-hour and 4-hour timeframes may indicate a stronger trend than a cross on a single timeframe.
- Cross Detection: The indicator identifies when the selected SMA Source for the shorter length crosses above (bullish) or below (bearish) the longer length.
- Visual Plotting: Crosses can be plotted directly on the main chart as labels, while the dashboard provides a summarized view of the state of all active timeframes.
- Source Flexibility: Users can change the calculation source from the standard "Close" price to other values like "High", "Low", or even the output of other indicators.
Details
The script calculates two SMAs for each enabled timeframe using the user-specified source and lengths. An SMA is a mathematical average of a data series over a specific period, used to smooth out price action and highlight the underlying trend.
A bullish cross (Golden Cross) occurs when the shorter SMA moves above the longer SMA, suggesting increasing upward momentum. Conversely, a bearish cross (Death Cross) occurs when the shorter SMA moves below the longer SMA, indicating downward momentum. The dashboard aggregates these signals using request.security to pull data from higher or lower timeframes, presenting the information in a clean, customizable table.
Settings
Timeframes
- Enable/Disable: Toggle checkboxes to activate or deactivate specific timeframe monitoring.
- Timeframe: Set the specific interval (e.g., 15m, 1h, 1D) for each slot.
- SMA 1 Length: The period for the shorter (faster) moving average.
- SMA 2 Length: The period for the longer (slower) moving average.
General Configuration
- SMA Source: Defines the data point used for calculations (e.g., Close, Open, hl2).
- Display Dashboard: Toggles the visibility of the on-screen table.
- Crosses: Enables or disables the plotting of cross signals on the chart.
Style
- Position: Adjusts where the dashboard is anchored on the chart (e.g., Top Right, Bottom Center).
- Background/Bullish/Bearish Colors: Customizes the visual appearance of the dashboard and its signal indicators.
FAQ
How do I interpret the dashboard colors? Typically, green indicates a bullish SMA cross (fast above slow) for that specific timeframe, while red indicates a bearish cross (fast below slow).
Can I use this for assets other than what I am currently viewing? The script is designed to monitor the current ticker across multiple timeframes, providing a comprehensive view of the asset's trend structure.
How can I access the SMA Cross Dashboard? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.