Scripting Tutorial 7 - Triple Many Moving Averages Resolutions
Oct 1, 2019

The Triple Many Moving Averages indicator provides a comprehensive multi-timeframe analysis environment featuring three customizable moving averages with integrated crossover labeling and predictive forecasting.
Usage
The Usage section describes how the script can be used to identify trend changes and project potential future price levels. Traders can apply this tool to observe how different moving average types and timeframes interact.
- Trend Identification: By configuring three distinct moving averages (e.g., a 50-period SMA, 100-period EMA, and 200-period SMA), users can determine the primary, secondary, and tertiary trend directions.
- Crossover Analysis: The indicator automatically identifies and labels crossovers between the three selected averages. For example, if a short-term MA crosses above a long-term MA, a label appears on the chart describing the specific event (e.g., "50 SMA crossed over 200 SMA").
- Forecasting: Users can project the trajectory of the moving averages five bars into the future. This is visualized as a series of circles extending from the current MA value.
- Multi-Timeframe Strategy: Each moving average can be set to a different resolution (from 1 minute to 1 month), allowing for a high-level view of higher timeframe trends directly on a lower timeframe chart.
Details
The script utilizes request.security to fetch data from different resolutions, ensuring that calculations remain accurate across various timeframes. The forecasting logic calculates projected values based on the current average and an adjustable bias.
The "Forecast Bias" feature allows users to simulate market conditions by incorporating an Average True Range (ATR) based adjustment into the forecast. This allows for three scenarios:
- Neutral: Projects the current momentum.
- Bullish: Adds an ATR-based magnitude to the forecast calculation to simulate upward pressure.
- Bearish: Subtracts an ATR-based magnitude to simulate downward pressure.
Supported Moving Average types include Simple (SMA), Exponential (EMA), Weighted (WMA), Running (RMA), Hull (HMA), Double Exponential (DEMA), Triple Exponential (TEMA), and Volume Weighted (VWMA).
Settings
- MA Period: Sets the lookback length for the specific moving average.
- MA Type: Selects the calculation method (e.g., SMA, EMA, HMA).
- MA Source: Determines the price input used for the calculation (e.g., Close, Open, HL2).
- MA Resolution: Sets the timeframe for the MA calculation, allowing for multi-timeframe analysis.
- MA Visible: Toggles the visibility of the specific moving average on the chart.
- Show Crosses: Enables or disables the visual labels for MA crossovers.
- Forecast Bias: Adjusts the directional assumption for the forecast (Neutral, Bullish, or Bearish).
- Forecast Bias Period/Magnitude: Controls the ATR length and the intensity of the bias applied to the projections.
- Show Forecasts: Toggles the visibility of the projected 5-bar circles.
FAQ
How do I interpret the crossover labels? The labels appear exactly at the point of the crossover and provide text-based details on which specific periods and MA types triggered the event, colored green for bullish crosses and red for bearish crosses.
Can I use this for multi-timeframe analysis? Yes, each of the three moving averages can be set to an independent resolution (e.g., 1-hour, 4-hour, and Daily) while viewing a 15-minute chart.
How do I access the Triple Many Moving Averages? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

