OPEN-SOURCE SCRIPT

Rocket Moving Average

77
The **Rocket Moving Average** is a simple Pine Script indicator based on a **20-period Simple Moving Average (SMA)**. The script begins with **version 5** of Pine Script and sets up an indicator named **"Rocket Moving Average"** with the `overlay=true` parameter, ensuring it is plotted directly on the price chart. The **SMA** is calculated using the closing prices over the last **20 candles**, providing a smoothed trend line that helps traders identify price direction. The moving average is then plotted as a **purple-colored line (RGB: 167, 8, 162)** using the `plot()` function. This indicator is useful for trend analysis and identifying support/resistance levels.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.