OPEN-SOURCE SCRIPT

ARIMA Indicator with Optional Smoothing

Overview
The ARIMA (AutoRegressive Integrated Moving Average) Indicator is a powerful tool used to forecast future price movements by combining differencing, autoregressive, and moving average components. This indicator is designed to help traders identify trends and potential reversal points by analyzing the historical price data.

Key Features
  • AutoRegressive Component (AR): Utilizes past values to predict future prices.
  • Moving Average Component (MA): Averages past price differences to smooth out noise.
  • Differencing: Reduces non-stationarity in the time series data.
  • Optional Smoothing: Applies EMA to the ARIMA output for a smoother signal.
  • Customizable Parameters: Allows users to adjust AR and MA orders, differencing periods, and smoothing lengths.


Concepts Underlying the Calculations
  • Differencing: Subtracts previous prices from current prices to remove trends and seasonality, making the data stationary.
  • AutoRegressive Component (AR): Predicts future prices based on a linear combination of past values.
  • Moving Average Component (MA): Uses past forecast errors to refine future predictions.
  • Exponential Moving Average (EMA): Applies more weight to recent prices, providing a smoother and more responsive signal.


How It Works
The ARIMA Indicator first calculates the differenced series to achieve stationarity. Then, it computes the simple moving average (SMA) of this differenced series. The indicator uses the AR and MA components to adjust the SMA, creating an approximation of the ARIMA model. Finally, an optional smoothing step using EMA can be applied to the ARIMA approximation to produce a smoother signal.

How Traders Can Use It
Traders can use the ARIMA Indicator to:
  • Identify Trends: Detect emerging trends by observing the direction of the ARIMA line.
  • Spot Reversals: Look for divergences between the ARIMA line and the price to identify potential reversal points.
  • Generate Trading Signals: Use crossovers between the ARIMA line and the price to generate buy or sell signals.
  • Filter Noise: Enable the optional smoothing to filter out market noise and focus on significant price movements.


Example Usage Instructions
  1. Add the ARIMA Indicator to your chart.
  2. Adjust the input parameters to suit your trading strategy:
  3. Set the SMA Length (e.g., 14).
  4. Choose the Differencing Period (e.g., 1).
  5. Define the AR Order (p) and MA Order (q) (e.g., 1).
  6. Configure the Smoothing Length if smoothing is desired (e.g., 5).
  7. Enable or disable smoothing as needed.
  8. Observe the ARIMA line (blue) and compare it to the price chart.
  9. Use the ARIMA line to identify trends and potential reversals.
  10. Implement trading decisions based on the ARIMA line’s behavior relative to the price.
arimaautoregressiveforecastingsmoothingstatisticstechnicalindicatortimeseriestradingstrategyTrend Analysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항