ARIMA Moving Average and Forecaster
Jan 11, 2024

The ARIMA Moving Average and Forecaster indicator provides an advanced time-series modeling framework that combines autoregressive integrated moving average logic with dynamic forecasting to project future price trends and volatility boundaries. This tool streamlines the complexity of ARIMA modeling by automating stationarity assessments and providing visual error bands for trend analysis.
Usage
The Usage section focuses on how the ARIMA model interprets historical data to project future price paths. Users can employ the indicator as a specialized moving average or as a predictive forecasting tool.
- Trend Analysis: The ARIMA Moving Average serves as a lagged average (based on the SMA of the current trend). It can replace standard moving averages like the 50 or 200 SMA while providing additional context through error bands.
- Stationarity and Lag Selection: For accurate forecasting, the data must be stationary. Users can enable the "Auto Determine Lag Length" feature, which uses Dickey-Fuller tests to select the most statistically appropriate lag.
- Forecasting: When enabled, the script projects the current trend into the future. It displays a central result line (conservative estimate) alongside upper and lower confidence levels. These levels illustrate potential continuation or reversal scenarios based on the current rate of change.
- Active Trading: By adding standard deviation extensions, traders can create wider volatility bands, useful for identifying overextended price action during intraday sessions.
Details
ARIMA (AutoRegressive Integrated Moving Average) combines three components:
- AutoRegressive (AR): Relates an observation to its own previous values.
- Integrated (I): Differences the data to achieve stationarity, stabilizing the mean.
- Moving Average (MA): Incorporates the relationship between an observation and residual errors from prior steps.
The model captures the underlying "trendiness" of the asset. A key implementation detail is the restriction on lag length; the script is optimized for low lag orders (typically 1–5). Higher lags can introduce excessive trend bias, leading to unrealistic projections. The script also includes a 95% confidence interval calculation to define the range where the price is statistically likely to fall.
Settings
General Settings
- Source: Determines the price data used for calculations (default is Close).
- Train Time: The lookback period used to train the ARIMA model.
- Lag Length (SMA Length): The manual lag order applied to the model when auto-selection is disabled.
- Auto Determine Lag Length?: When active, the script uses statistical tests to find the optimal lag for stationarity.
Visuals and Forecasting
- Plot Error Bands: Toggles the visibility of the standard error bands around the moving average.
- Forecast Length: Sets how many bars into the future the forecast lines extend.
- Add an Additional Standard Deviation Extension: Increases the width of the error bands by a user-defined multiplier.
- Show Forecast Lines: Displays the projected price paths on the chart.
- Plot Forecast Table: Generates a UI table showing specific price targets for most likely, upper, and lower confidence results.
- Round Number Decimal Points: Adjusts the precision of values displayed in the forecast table.
FAQ
How do I interpret the Upper and Lower Confidence levels in the forecast?
These levels represent the expected rate of increase or decline. They show what the trend would look like if the current momentum continues or if a reversal occurs within the calculated statistical variance.
Why are the forecast lines not appearing on my chart?
This typically happens in heavy trending environments where the lack of bidirectional movement prevents the calculation of confidence intervals. Manually setting the Lag Length to 3, 4, or 5 usually resolves this.
How can I access the ARIMA Moving Average and Forecaster?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

